Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cmelab/flowerMD into fix-lattice
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Oct 10, 2023
2 parents 113be23 + dbc5b80 commit 88d4958
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions flowermd/utils/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ def act(self, timestep):
tps = np.round(self.sim.tps, 2)
current_step = self.sim.timestep - self.starting_step
eta = np.round((self.n_steps - current_step) / (60 * tps), 1)
print(
f"Step {current_step} of {self.n_steps}; TPS: {tps}; ETA: "
f"{eta} minutes"
)
if eta <= 60.0:
print(
f"Step {current_step} of {self.n_steps}; TPS: {tps}; ETA: "
f"{eta} minutes"
)
else:
print(
f"Step {current_step} of {self.n_steps}; TPS: {tps}; ETA: "
f"{eta // 60} hours, {eta % 60} minutes"
)


class PullParticles(hoomd.custom.Action):
Expand Down

0 comments on commit 88d4958

Please sign in to comment.