Commit f00f9e19 authored by Fabrice Allain's avatar Fabrice Allain
Browse files

Update host command for slurm log file

parent 0c139e81
......@@ -881,6 +881,7 @@ class AriaEcXMLConverter(AriaXMLConverter):
'the ratio %.2f:%.2f' % (steps_1, steps_2))
aria_project_dict.update(self.settings.setup.config)
work_dir = os.path.abspath(self.settings.outdir)
temp_dir = os.path.join(os.path.abspath(aria_project_dict['temp_root']),
molecule, "_".join(datas))
......@@ -898,6 +899,15 @@ class AriaEcXMLConverter(AriaXMLConverter):
aria_project_dict['working_directory'] = work_dir
aria_project_dict['temp_root'] = temp_dir
if "-o" in aria_project_dict['host_command']:
LOG.info("Update host command for log file path")
aria_project_dict['host_command'] = re.sub(
"-o [/\w.]+", "-o %s/slurm.errors" % temp_dir,
aria_project_dict['host_command'])
else:
LOG.info("Adding log file path to host command")
aria_project_dict['host_command'] += "-o %s/slurm.errors" % temp_dir
project = {'project_name': self.outprefix,
'date': datetime.date.today().isoformat(),
'file_root': self.outprefix}
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment