File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3535
3636import cantera as ct
3737import numpy
38+ import numpy as np
3839import yaml
3940from copy import deepcopy
4041
@@ -2916,7 +2917,9 @@ def test_arrhenius(self):
29162917 # Check that the reaction string is the same
29172918 assert repr (converted_obj ) == repr (ct_obj )
29182919 # Check that the rate is the same. arrhenius string is not going to be identical
2919- assert converted_obj .rate .input_data == ct_obj .rate .input_data
2920+ assert np .isclose (converted_obj .rate .input_data ['rate-constant' ]['A' ], ct_obj .rate .input_data ['rate-constant' ]['A' ])
2921+ assert np .isclose (converted_obj .rate .input_data ['rate-constant' ]['b' ], ct_obj .rate .input_data ['rate-constant' ]['b' ])
2922+ assert np .isclose (converted_obj .rate .input_data ['rate-constant' ]['Ea' ], ct_obj .rate .input_data ['rate-constant' ]['Ea' ])
29202923
29212924 def test_multi_arrhenius (self ):
29222925 """
You can’t perform that action at this time.
0 commit comments