Skip to content

Commit

Permalink
Recover test_deconvolution_input_wrong_interpolation_method_raises
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaponte committed Nov 7, 2024
1 parent f41676c commit 850f8b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions invisible_cities/reco/deconv_functions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ def test_deconvolution_input_interpolation_method(data_hdst_first_peak, new_grid
assert output[1][1].shape == (nelements,)


@mark.parametrize("interp_method", InterpolationMethod.__members__)
def test_deconvolution_input_wrong_interpolation_method_raises(interp_method):
with raises(ValueError):
deconvolution_input([10., 10.], [1., 1.], interp_method)


#TODO: use data_hdst_first_peak and new_grid_1mm here too, if possible
def test_deconvolve(data_hdst, data_hdst_deconvolved):
ref_interpolation = np.load (data_hdst_deconvolved)
Expand Down

0 comments on commit 850f8b5

Please sign in to comment.