Skip to content
Snippets Groups Projects
Commit f3173700 authored by Alexis GAMELIN's avatar Alexis GAMELIN
Browse files

[Fix] dependancies on eta

Fix lcbi_growth_rate_mode, effective_impedance and head_tail_form_factor to be use new form of eta.
parent d01f5bc7
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ def lcbi_growth_rate_mode(ring, I, Vrf, M, mu, fr=None, RL=None, QL=None, Z=None
"""
nu_s = ring.synchrotron_tune(Vrf)
factor = ring.eta * I / (4 * np.pi * ring.E0 * nu_s)
factor = ring.eta() * I / (4 * np.pi * ring.E0 * nu_s)
if isinstance(fr, (float, int)):
fr = np.array([fr])
......
......@@ -88,7 +88,7 @@ def effective_impedance(ring, imp, m, mu, sigma, M, tuneS, xi=None,
pmin = fmin/(ring.f0 * M) + 1
p = np.arange(pmin, pmax+1)
fp = ring.f0*(p*M + mu + tuneXY + m*tuneS)
f_xi = xi/ring.eta*ring.f0
f_xi = xi/ring.eta()*ring.f0
num = np.sum(imp(fp) * h(fp - f_xi))
den = np.sum(h(fp - f_xi))
Zeff = num/den
......@@ -136,7 +136,7 @@ def head_tail_form_factor(ring, imp, m, sigma, tuneS, xi=None, mode="Hermite", m
if xi is None:
xi = ring.chro[1]
fp = ring.f0*(p*M + mu + tuneXY + m*tuneS)
f_xi = xi/ring.eta*ring.f0
f_xi = xi/ring.eta()*ring.f0
den = np.sum(h(fp - f_xi))
else:
raise TypeError("Effective impedance is only defined for long, xdip"
......
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