diff --git a/xrtpy/response/tests/test_temperature_response.py b/xrtpy/response/tests/test_temperature_response.py index 0f8696d0..f8f5edb2 100644 --- a/xrtpy/response/tests/test_temperature_response.py +++ b/xrtpy/response/tests/test_temperature_response.py @@ -1,8 +1,8 @@ -import pytest - from datetime import datetime from pathlib import Path +import pytest + from xrtpy.response.temperature_response import TemperatureResponseFundamental _abundance_model_IDL_test_file_path = { @@ -91,10 +91,7 @@ def test_temperature_response(filename, allclose): filter_name, filter_obs_date, abundance_model="coronal" ) actual_temperature_response = instance.temperature_response() - atol = actual_temperature_response.value.max() * 0.013 + assert allclose( - actual_temperature_response.value, - IDL_temperature_response, - rtol=0.028, - atol=atol, + actual_temperature_response.value, IDL_temperature_response, rtol=1e-6 )