Skip to content

Commit

Permalink
add small MLFF test
Browse files Browse the repository at this point in the history
  • Loading branch information
esoteric-ephemera committed Nov 26, 2024
1 parent 27e1ec1 commit 2322a59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/forcefields/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
from atomate2.forcefields.utils import ase_calculator


@pytest.mark.parametrize(("force_field"), [mlff.value for mlff in MLFF])
def test_mlff(force_field: str):
mlff = MLFF(force_field)
assert mlff == MLFF(str(mlff)) == MLFF(str(mlff).split(".")[-1])


@pytest.mark.parametrize(("force_field"), ["CHGNet", "MACE"])
def test_ext_load(force_field: str):
decode_dict = {
Expand Down

0 comments on commit 2322a59

Please sign in to comment.