From 4c7023e34625d3eec18668a6c99bf217c80b795d Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Mon, 11 Nov 2024 11:19:40 +0000 Subject: [PATCH] Indentation matters --- tests/integration_tests/test_pychop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/test_pychop.py b/tests/integration_tests/test_pychop.py index 08a83ad..4042960 100644 --- a/tests/integration_tests/test_pychop.py +++ b/tests/integration_tests/test_pychop.py @@ -79,14 +79,14 @@ def _test_against_abins(abins, rf_2d, setting, matrix): with pytest.raises(NoTransmissionError): rf_2d.get_resolution_function('PyChop_fit', chopper_package=setting, e_init=energy, chopper_frequency=chopper_frequency ) - return + return if np.any(np.isnan(expected)): # If chopper/energy settings block transmission, width via AbINS is NaN. # This library should raise NoTransmissionError instead. with pytest.raises(NoTransmissionError): rf_2d.get_resolution_function('PyChop_fit', chopper_package=setting, e_init=energy, chopper_frequency=chopper_frequency) - return + return rf = rf_2d.get_resolution_function('PyChop_fit', chopper_package=setting, e_init=energy, chopper_frequency=chopper_frequency)