Skip to content

Commit

Permalink
fix ase md failing for bad models (#355)
Browse files Browse the repository at this point in the history
* fix ase md failing for bad models

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
M-R-Schaefer and pre-commit-ci[bot] authored Dec 3, 2024
1 parent f064ff1 commit be97528
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ipsuite/calculators/ase_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,9 @@ def run_md(self, atoms): # noqa: C901
current_step += 1

if not self.pop_last and self.steps_before_stopping != -1:
metrics_dict = update_metrics_dict(atoms, metrics_dict, self.checks)
metrics_dict = update_metrics_dict(
atoms, metrics_dict, self.checks, current_step
)
atoms_cache.append(freeze_copy_atoms(atoms))
current_step += 1

Expand Down

0 comments on commit be97528

Please sign in to comment.