diff --git a/lisainstrument/shift_inversion_numpy.py b/lisainstrument/shift_inversion_numpy.py index 57ad25cf5bd9992da236453c456f7498c21e6d87..e5f127665397bc2a88bbd79f9a45b45ae9368e08 100644 --- a/lisainstrument/shift_inversion_numpy.py +++ b/lisainstrument/shift_inversion_numpy.py @@ -79,11 +79,11 @@ class ShiftInverseNumpy: # pylint: disable=too-few-public-methods tolerance: Maximum absolute error of result """ self._max_abs_shift: Final = int(np.ceil(max_abs_shift)) - + if self._max_abs_shift < 0: msg = f"ShiftInverseNumpy: max_abs_shift must be positive, got {max_abs_shift}" raise ValueError(msg) - + self._interp_np: Final = interp self._max_iter = int(max_iter) self._tolerance = float(tolerance) diff --git a/tests/test_shift_inversion_dask.py b/tests/test_shift_inversion_dask.py index d029f9852d0281d7483f3330087da6438a3b433d..658d21c477ecf63316beda68ad7b246c2f8ac7f0 100644 --- a/tests/test_shift_inversion_dask.py +++ b/tests/test_shift_inversion_dask.py @@ -3,9 +3,9 @@ import numpy as np import pytest -from lisainstrument.shift_inversion_numpy import make_shift_inverse_lagrange_numpy -from lisainstrument.shift_inversion_dask import make_shift_inverse_lagrange_dask from lisainstrument.dynamic_delay_dask import numpyfy_dask_multi +from lisainstrument.shift_inversion_dask import make_shift_inverse_lagrange_dask +from lisainstrument.shift_inversion_numpy import make_shift_inverse_lagrange_numpy def test_shift_inversion_numpy():