diff --git a/tracking/wakepotential.py b/tracking/wakepotential.py index 02dee0325a3603c3405cfdea53b6168a9825322d..9ecc6779b282f46f224cb7400bcc03fde9f588c4 100644 --- a/tracking/wakepotential.py +++ b/tracking/wakepotential.py @@ -162,7 +162,7 @@ class WakePotential(Element): W0 = getattr(self.wakefield, wake_type).data["real"] interp_func_W0 = interp1d(tau0, W0, fill_value=0, bounds_error=False) - W = interp_func_W0(self.tau) + W = interp_func_W0(self.tau - np.mean(self.tau)) if wake_type == "Wlong" or wake_type == "Wxquad" or wake_type == "Wyquad": Wp = signal.convolve(self.rho, W*-1, mode='same')*self.dtau elif wake_type == "Wxdip":