Skip to content

Commit

Permalink
one more cleaning up of check_deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Nov 14, 2024
1 parent 7df2adb commit 69dbdbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,8 @@ def check_deterministic(force=False):
new_seed = (t.seed + 1 + run) % (2**31)
result = t.generator.run(bar, tmp, tmp_infile.stem, new_seed, t.config.retries)
if not result.status:
# clean up
shutil.rmtree(tmp)
return

# Now check that the source and target are different.
Expand Down

0 comments on commit 69dbdbf

Please sign in to comment.