Skip to content

Commit 502d496

Browse files
committed
Update arch for dispersion in tests
1 parent 845208c commit 502d496

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/test_descriptors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_dispersion():
119119
descriptors_disp.run()
120120

121121
assert (
122-
descriptors_disp.struct.info["mace_mp_descriptor"]
122+
descriptors_disp.struct.info["mace_mp_d3_descriptor"]
123123
== descriptors.struct.info["mace_mp_descriptor"]
124124
)
125125

tests/test_mlip_calculators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_d3():
253253
calculator = choose_calculator(arch="mace_mp", dispersion=True)
254254
assert calculator.parameters["version"] is not None
255255
assert calculator.parameters["model"] is not None
256-
assert calculator.parameters["arch"] == "mace_mp-d3"
256+
assert calculator.parameters["arch"] == "mace_mp_d3"
257257

258258

259259
def test_d3_manual():
@@ -264,4 +264,4 @@ def test_d3_manual():
264264
calculator = add_dispersion(calculator)
265265
assert calculator.parameters["version"] is not None
266266
assert calculator.parameters["model"] is not None
267-
assert calculator.parameters["arch"] == "mace_mp-d3"
267+
assert calculator.parameters["arch"] == "mace_mp_d3"

tests/test_singlepoint_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ def test_hessian(tmp_path):
434434
assert result.exit_code == 0
435435

436436
atoms = read(results_path)
437-
assert "mace_mp_energy" in atoms.info
438-
assert "mace_mp_hessian" in atoms.info
439-
assert "mace_stress" not in atoms.info
440-
assert atoms.info["mace_mp_hessian"].shape == (24, 8, 3)
437+
assert "mace_mp_d3_energy" in atoms.info
438+
assert "mace_mp_d3_hessian" in atoms.info
439+
assert "mace_mp_d3_stress" not in atoms.info
440+
assert atoms.info["mace_mp_d3_hessian"].shape == (24, 8, 3)
441441
assert atoms.info["units"]["hessian"] == "ev/Ang^2"
442442

443443

0 commit comments

Comments
 (0)