diff --git a/lisainstrument/fixed_shift_dsp.py b/lisainstrument/fixed_shift_dsp.py index 6cb5074ed2b1834f2945969e010854544138a680..c25597db5f3ff814a290861a6f888ae31f058cf5 100644 --- a/lisainstrument/fixed_shift_dsp.py +++ b/lisainstrument/fixed_shift_dsp.py @@ -99,6 +99,11 @@ class FixedShiftWrapDSP(FixedShiftCore): a = make_numpy_array_1d_float(samples) res = dsp.timeshift(a, -self.shift, self._order) + if self.margin_left > 0: + res = res[self.margin_left :] + if self.margin_right > 0: + res = res[: -self.margin_right] + return make_numpy_array_1d(res) @staticmethod @@ -130,7 +135,7 @@ def make_fixed_shift_dsp_dask( Arguments: left_bound: boundary treatment on the left right_bound: boundary treatment on the right - length: number of Lagrange plolynomials (=order + 1) + length: number of Lagrange polynomials (=order + 1) Returns: Fixed shift interpolator