Skip to content

Commit

Permalink
the dependencies afterok should be given with : (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuillaut authored Apr 16, 2023
1 parent c2340d1 commit 8e56f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lstmcpipe/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_sbatch_lst_mc_stage():

sbatch.extra_slurm_options = None
sbatch.slurm_dependencies = "123,243,345,456"
assert sbatch._construct_slurm_dependencies() == "--dependency=afterok:123,243,345,456"
assert sbatch._construct_slurm_dependencies() == "--dependency=afterok:123:243:345:456"

sbatch.compose_wrap_command(
wrap_command="python args",
Expand Down
2 changes: 1 addition & 1 deletion lstmcpipe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _construct_slurm_dependencies(self):
if slurm_deps is None or slurm_deps == "":
return ""
elif all(items != "" for items in slurm_deps.split(",")):
return f"--dependency={dependency_type}:{slurm_deps}"
return f"--dependency={dependency_type}:{slurm_deps.replace(',',':')}"
else:
raise ValueError("Slurm dependencies contain an empty value between commas, i.e.; ,'', ")

Expand Down

0 comments on commit 8e56f01

Please sign in to comment.