Skip to content
Snippets Groups Projects
Commit d86958b5 authored by Wolfgang Kastaun's avatar Wolfgang Kastaun
Browse files

Fix error in draft of dsp fixed shift wrapper

parent 77ffc7f3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment