Skip to content

Commit

Permalink
addressing @charles-cowart comments
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Nov 28, 2023
1 parent 2de16b9 commit aaf52c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/start_woltka
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ def execute(url, job_id, out_dir):
else:
directory = directory.pop()

if command.lower().startswith('woltka'):
# these were defined in qp_woltka/__init.py__ while defining the
# available commands for this plugin
valid_commands = [
'Woltka v0.1.4', 'SynDNA Woltka', 'Calculate Cell Counts']

if command not in valid_commands:
raise ValueError(f'Not a valid command: "{command}"')

if command == 'Woltka v0.1.4':
main_fp, merge_fp = woltka_to_array(
files, out_dir, parameters['Database'], prep, url, job_id)
else:
Expand Down

0 comments on commit aaf52c5

Please sign in to comment.