Skip to content

Commit

Permalink
allow passing all calculator to MD
Browse files Browse the repository at this point in the history
  • Loading branch information
bowen-bd committed Jan 13, 2025
1 parent 5ef8876 commit a3098cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chgnet/model/dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def __init__(
Stationary(atoms)

self.atoms = atoms
if isinstance(model, CHGNetCalculator):
if isinstance(model, Calculator):
self.atoms.calc = model
else:
self.atoms.calc = CHGNetCalculator(
Expand Down

0 comments on commit a3098cc

Please sign in to comment.