Skip to content

Commit a707842

Browse files
committed
Added filter
1 parent 46b7925 commit a707842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/slurm/arrayexecutor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def filter_previous_results(run_set, benchmark):
139139
prefix_base = f"{benchmark.config.output_path}{benchmark.name}."
140140
files = glob.glob(f"{prefix_base}*.logfiles.zip")
141141
if files:
142-
prefix = str(max(files, key=os.path.getmtime))[0 : -(len(".logfiles.zip"))]
142+
prefix = str(max(filter(lambda file: file != benchmark.log_zip, files), key=os.path.getmtime))[0 : -(len(".logfiles.zip"))]
143143
else:
144144
logging.warning("No logfile zip found. Giving up recovery.")
145145
return run_set.runs

0 commit comments

Comments
 (0)