Skip to content

Commit

Permalink
fix failing test_elastic_wf was using m3gnet which predicts negative …
Browse files Browse the repository at this point in the history
…bulk modulus causing pydantic validation error, same with chgnet, MACE works fine
  • Loading branch information
janosh committed Dec 8, 2023
1 parent 68dd607 commit b1840e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/forcefields/flows/test_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

from atomate2.common.schemas.elastic import ElasticDocument
from atomate2.forcefields.flows.elastic import ElasticMaker
from atomate2.forcefields.jobs import M3GNetRelaxMaker
from atomate2.forcefields.jobs import MACERelaxMaker


def test_elastic_wf_with_m3gnet(clean_dir, si_structure):
def test_elastic_wf_with_mace(clean_dir, si_structure):
si_prim = SpacegroupAnalyzer(si_structure).get_primitive_standard_structure()

job = ElasticMaker(
bulk_relax_maker=M3GNetRelaxMaker(
bulk_relax_maker=MACERelaxMaker(
relax_cell=True, relax_kwargs={"fmax": 0.00001}
),
elastic_relax_maker=M3GNetRelaxMaker(
elastic_relax_maker=MACERelaxMaker(
relax_cell=False, relax_kwargs={"fmax": 0.00001}
),
).make(si_prim)
Expand Down

0 comments on commit b1840e9

Please sign in to comment.