From c138056f95caaee61203259debba8b761c1b9aab Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Wed, 9 Oct 2024 09:16:03 -0600 Subject: [PATCH] lowering tolerance --- src/acom_music_box/examples/configs/ts1/my_config.json | 2 +- tests/integration/test_chapman.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/acom_music_box/examples/configs/ts1/my_config.json b/src/acom_music_box/examples/configs/ts1/my_config.json index babb7683..bbb1504c 100644 --- a/src/acom_music_box/examples/configs/ts1/my_config.json +++ b/src/acom_music_box/examples/configs/ts1/my_config.json @@ -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": { diff --git a/tests/integration/test_chapman.py b/tests/integration/test_chapman.py index 230926f9..430d4479 100644 --- a/tests/integration/test_chapman.py +++ b/tests/integration/test_chapman.py @@ -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}"