Skip to content

Commit

Permalink
Added prefix to names
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 28, 2024
1 parent eed7c19 commit c9e24bd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions contrib/slurm/arrayexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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),
)
Expand Down

0 comments on commit c9e24bd

Please sign in to comment.