Skip to content

Commit a82ff3c

Browse files
committed
job_array bug
1 parent dbc626e commit a82ff3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asimtools/job.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,9 @@ def _gen_array_script(
646646
# txt += 'fi\n\n'
647647
# txt += 'cd ${WORKDIR}\n'
648648
txt += ' ' + '\n'.join(slurm_params.get('precommands', []))
649-
txt += ' ' + '\n'.join(
649+
txt += ' \n'.join(
650650
self.unitjobs[0].calc_params.get('precommands', [])
651-
)
651+
) + '\n'
652652
txt += ' echo "WORKDIR: ${WORKDIR}"\n'
653653
txt += ' ' + self.unitjobs[0].gen_run_command() + '\n'
654654
txt += ' ' + '\n'.join(slurm_params.get('postcommands', [])) + '\n'
@@ -1000,7 +1000,7 @@ def submit(self, dependency: Union[List,None] = None, debug: bool = False) -> Li
10001000
# curjob.env['slurm']['postcommands'] = postcommands
10011001
# #####
10021002
# submit the next job dependent on the current one
1003-
# Prvious working solution
1003+
# Previous working solution
10041004
write_image = False
10051005
# Write image first step in chain being run/continued
10061006
if i == 0:

0 commit comments

Comments
 (0)