Skip to content
Snippets Groups Projects
Commit 438e7747 authored by Gamelin Alexis's avatar Gamelin Alexis
Browse files

Bugfix : WakePotential

Remove part which was causing "damping".
We have to re-process the wake function at each track call and not to reuse the previously processed wake function
parent e59a7196
No related branches found
No related tags found
No related merge requests found
......@@ -196,15 +196,10 @@ class WakePotential(Element):
Wake function array in [V/C] or [V/C/m].
"""
try:
tau0 = getattr(self, "tau0_" + wake_type)
dtau0 = getattr(self, "dtau0_" + wake_type)
W0 = getattr(self, "W0_" + wake_type)
except AttributeError:
tau0 = np.array(getattr(self.wakefield, wake_type).data.index)
dtau0 = tau0[1] - tau0[0]
W0 = np.array(getattr(self.wakefield, wake_type).data["real"])
tau0 = np.array(getattr(self.wakefield, wake_type).data.index)
dtau0 = tau0[1] - tau0[0]
W0 = np.array(getattr(self.wakefield, wake_type).data["real"])
# Keep only the wake function on the rho window
ind = np.all([min(tau[0], 0) < tau0, max(tau[-1], 0) > tau0],
......
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