diff --git a/var/ramble/repos/builtin/applications/hpcc/application.py b/var/ramble/repos/builtin/applications/hpcc/application.py index 081bc05e5..5fef9a5f3 100644 --- a/var/ramble/repos/builtin/applications/hpcc/application.py +++ b/var/ramble/repos/builtin/applications/hpcc/application.py @@ -96,7 +96,7 @@ class Hpcc(SpackApplication): log_str = Expander.expansion_str('out_file') for metric, unit in summary_metrics: - summary_regex = metric + '=(?P[0-9]+\.[0-9]+)' + summary_regex = metric + r'=(?P[0-9]+\.[0-9]+)' figure_of_merit(metric, log_file=log_str, fom_regex=summary_regex, diff --git a/var/ramble/repos/builtin/applications/lammps/application.py b/var/ramble/repos/builtin/applications/lammps/application.py index b05e35201..0bf6aee48 100644 --- a/var/ramble/repos/builtin/applications/lammps/application.py +++ b/var/ramble/repos/builtin/applications/lammps/application.py @@ -65,7 +65,7 @@ class Lammps(SpackApplication): executable( 'set-data-path', - template=["sed 's|data\.|" + os.path.join("{lammps-stage}", "bench", "data.") + "|g' -i input.txt"], + template=[r"sed 's|data\.|" + os.path.join("{lammps-stage}", "bench", "data.") + "|g' -i input.txt"], use_mpi=False ) @@ -165,7 +165,7 @@ class Lammps(SpackApplication): description='Additional execution flags for lammps', workloads=['hns-reaxff']) - success_criteria('walltime', mode='string', match='\s*Total wall time', file='{log_file}') + success_criteria('walltime', mode='string', match=r'\s*Total wall time', file='{log_file}') figure_of_merit('Total wall time', fom_regex=r'Total wall time.*\s+(?P[0-9:]+)', group_name='walltime', units='') figure_of_merit('Nanoseconds per day', fom_regex=r'Performance.*\s+(?P[0-9\.]+) (ns|tau)/day', group_name='nspd', units='ns/day')