Skip to content

Commit

Permalink
Use PESCalculator in m3gnet (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Mar 21, 2024
1 parent 8835fd8 commit 2d31b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quacc/recipes/mlp/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def pick_calculator(
if method.lower().startswith("m3gnet"):
import matgl
from matgl import __version__
from matgl.ext.ase import M3GNetCalculator
from matgl.ext.ase import PESCalculator

model = matgl.load_model("M3GNet-MP-2021.2.8-DIRECT-PES")
kwargs.setdefault("stress_weight", 1.0 / 160.21766208)
calc = M3GNetCalculator(potential=model, **kwargs)
calc = PESCalculator(potential=model, **kwargs)

elif method.lower() == "chgnet":
from chgnet import __version__
Expand Down

0 comments on commit 2d31b39

Please sign in to comment.