Skip to content

Commit

Permalink
Fix bug when number of solve steps % save_every == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbvh committed Jun 27, 2024
1 parent a495d03 commit 1cbeefb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tdgl/solver/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,6 @@ def save_step(step):
self.logger.warning(msg.format("Cancelling"))
cancelled = True
break
if save:
if save and (i % self.options.save_every):
save_step(i)
return not cancelled
2 changes: 1 addition & 1 deletion tdgl/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version_info__ = (0, 8, 2)
__version_info__ = (0, 8, 3)
__version__ = ".".join(map(str, __version_info__))


Expand Down

0 comments on commit 1cbeefb

Please sign in to comment.