Skip to content

Commit

Permalink
Indentation matters
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Nov 11, 2024
1 parent 4fc9ab8 commit 4c7023e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/test_pychop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c7023e

Please sign in to comment.