Skip to content

Commit

Permalink
Fix accidental newline in batch dsq submission
Browse files Browse the repository at this point in the history
  • Loading branch information
MCFlowMace committed Oct 17, 2022
1 parent b35d7b4 commit 62a1bd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hercules/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@ def _add_job_batch(self, config_list):
cmd = ''
for config in config_list:
cmd += self._add_job(config)
cmd += ';'

cmd +='\n'

with open(self._joblist, 'a+') as out_file:
out_file.write(cmd)
Expand Down Expand Up @@ -510,7 +511,7 @@ def _assemble_command(self, output_dir):

log = '>' + str(output_dir) + '/log.out'
err = '2>' + str(output_dir) + '/log.err'
cmd += ') ' + log + ' ' + err + '\n'
cmd += ') ' + log + ' ' + err + ';'

return cmd

Expand Down

0 comments on commit 62a1bd1

Please sign in to comment.