Skip to content
Snippets Groups Projects
Commit 666bacbb authored by GUBAIDULIN's avatar GUBAIDULIN
Browse files

Agreed

parent e8be901d
No related branches found
No related tags found
1 merge request!9Emittance calculation
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -288,7 +288,7 @@ class Bunch:
cov_y = np.cov(self['y'], self['yp'])
cov_z = np.cov(self['tau'], self['delta'])
if (self.ring.optics.local_dispersion != 0):
if (self.ring.optics.local_dispersion != 0).any():
cov_xdelta = np.cov(self['x'], self['delta'])
cov_xpdelta = np.cov(self['xp'], self['delta'])
cov_ydelta = np.cov(self['y'], self['delta'])
......
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