Skip to content

Commit

Permalink
Fix test regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Aug 10, 2023
1 parent fc3de74 commit 7be0eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def test_PhononCalc(Li2O, LiFePO4, M3GNetUPCalc):
"""Tests for PhononCalc class"""
calculator = M3GNetUPCalc
# Note that the fmax is probably too high. This is for testing purposes only.
pcalc = EOSCalc(calculator)
pcalc = EOSCalc(calculator, fmax=0.01)
results = pcalc.calc(Li2O)

assert results["bulk_modulus"] == pytest.approx(69.86879801931632, 1e-2)

results = list(pcalc.calc_many([Li2O, LiFePO4]))
assert len(results) == 2
assert results[1]["bulk_modulus"] == pytest.approx(51.70659653126171, 1e-2)
assert results[1]["bulk_modulus"] == pytest.approx(53.791519828150925, 1e-2)

0 comments on commit 7be0eb5

Please sign in to comment.