-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd24ea1
commit 4817e63
Showing
3 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
import sys | ||
|
||
import pytest | ||
from ase.build import bulk | ||
|
||
from mlip_arena.models import MLIPEnum | ||
from mlip_arena.tasks.md import run as MD | ||
|
||
atoms = bulk("Cu", "fcc", a=3.6) | ||
|
||
@pytest.mark.skipif(sys.version_info[:2] != (3,11), reason="avoid prefect race condition on concurrent tasks") | ||
@pytest.mark.parametrize("model", [MLIPEnum["MACE-MP(M)"]]) | ||
def test_nve(model: MLIPEnum): | ||
|
||
result = MD.fn( | ||
atoms, | ||
calculator_name=model.name, | ||
calculator_kwargs={}, | ||
ensemble="nve", | ||
dynamics="velocityverlet", | ||
total_time=3, | ||
) | ||
|
||
assert isinstance(result["atoms"].get_potential_energy(), float) |