Skip to content

Commit

Permalink
Give unique names to burried jobs in case of multiple fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Aug 2, 2024
1 parent 9b0aa35 commit 09e8d78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyiron_contrib/repair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ def fix_job(self, tool, job, graveyard=None):
if graveyard is None:
job.remove()
else:
try:
no = len(job.content["user/handyman/history"])
except KeyError:
no = 0
job.rename(f'{job.name}_fix_{no}')
job.move_to(graveyard)
new_job.rename(name)

Expand Down

0 comments on commit 09e8d78

Please sign in to comment.