From c9e24bd8e9ba5ec6d193c3a848177d21ade13c82 Mon Sep 17 00:00:00 2001 From: Levente Bajczi Date: Thu, 28 Nov 2024 14:40:10 +0100 Subject: [PATCH] Added prefix to names --- contrib/slurm/arrayexecutor.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/contrib/slurm/arrayexecutor.py b/contrib/slurm/arrayexecutor.py index 28834d01a..4c79c2ec2 100644 --- a/contrib/slurm/arrayexecutor.py +++ b/contrib/slurm/arrayexecutor.py @@ -233,10 +233,13 @@ def filter_previous_results(run_set, benchmark, output_handler): key = (name, props) if key in previous_runs: old_log = str( - run_set.real_name - + "." - + os.path.basename(run.identifier) - + ".log" + os.path.join( + str(os.path.basename(logfile_zip))[0 : -(len(".zip"))], + run_set.real_name + + "." + + os.path.basename(run.identifier) + + ".log", + ) ) if old_log in logfile_zip_ref.namelist(): with logfile_zip_ref.open(old_log) as zipped_log, open( @@ -247,6 +250,7 @@ def filter_previous_results(run_set, benchmark, output_handler): old_files_prefix = ( str( os.path.join( + str(os.path.basename(file_zip))[0 : -(len(".zip"))], run_set.real_name, os.path.basename(run.identifier), )