Skip to content

Commit 116301d

Browse files
committed
Change rounding precision in a unit test.
It was spuriously failing on the github runner for continuous integration. Unrelated to changes on this pull request.
1 parent d5c0113 commit 116301d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/rmgpy/reactionTest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,9 +2936,9 @@ def test_multi_arrhenius(self):
29362936
# Check that the reaction string is the same
29372937
assert repr(converted_rxn) == repr(ct_rxn)
29382938
# Check that the Arrhenius rates are identical
2939-
assert round(abs(converted_rxn.rate.pre_exponential_factor - ct_rxn.rate.pre_exponential_factor), 3) == 0
2940-
assert round(abs(converted_rxn.rate.temperature_exponent - ct_rxn.rate.temperature_exponent), 7) == 0
2941-
assert round(abs(converted_rxn.rate.activation_energy - ct_rxn.rate.activation_energy), 7) == 0
2939+
assert round((converted_rxn.rate.pre_exponential_factor / ct_rxn.rate.pre_exponential_factor), 7) == 1
2940+
assert round((converted_rxn.rate.temperature_exponent / ct_rxn.rate.temperature_exponent), 7) == 1
2941+
assert round((converted_rxn.rate.activation_energy / ct_rxn.rate.activation_energy), 7) == 1
29422942

29432943
def test_pdep_arrhenius(self):
29442944
"""

0 commit comments

Comments
 (0)