Skip to content

Commit

Permalink
lowering tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Oct 9, 2024
1 parent 5c28a36 commit c138056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/acom_music_box/examples/configs/ts1/my_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"grid": "box",
"chemistry time step [sec]": 60.0,
"output time step [sec]": 60.0,
"simulation length [day]": 100.0
"simulation length [hour]": 1.0
},
"chemical species": {
"ALKNIT": {
Expand Down
6 changes: 2 additions & 4 deletions tests/integration/test_chapman.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ def test_run(self):

concs_to_test = [column for column in expected.columns if 'CONC' in column]

print(model)

for (_model_index, _model), (_expected_index, _expected) in zip(model.iterrows(), expected.iterrows()):
for column in concs_to_test:
assert math.isclose(
_model[column],
_expected[column],
rel_tol=1e-7,
abs_tol=1e-15,
rel_tol=1e-19,
abs_tol=1e-16,
), f"Model results differ from expected for row index {_model_index} for species {column}"


Expand Down

0 comments on commit c138056

Please sign in to comment.