Skip to content
Snippets Groups Projects
Commit 955307d6 authored by Watanyu Foosang's avatar Watanyu Foosang
Browse files

Minor fix SynchrotronRadiation

parent 6e4dba64
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ class SynchrotronRadiation(Element): ...@@ -135,7 +135,7 @@ class SynchrotronRadiation(Element):
if (self.switch[2] == True): if (self.switch[2] == True):
rand = np.random.normal(size=len(bunch)) rand = np.random.normal(size=len(bunch))
bunch["yp"] = ((1 - 2*self.ring.T0/self.ring.tau[1])*bunch["yp"] + bunch["yp"] = ((1 - 2*self.ring.T0/self.ring.tau[1])*bunch["yp"] +
2*self.ring.sigma()[1]*(self.ring.T0/self.ring.tau[1])**0.5*rand) 2*self.ring.sigma()[3]*(self.ring.T0/self.ring.tau[1])**0.5*rand)
class TransverseMap(Element): class TransverseMap(Element):
""" """
......
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