Skip to content
Snippets Groups Projects
Commit 4f07219d authored by Vadim Gubaidulin's avatar Vadim Gubaidulin
Browse files

np.any() to trigger emittance calculation with dispersion instead of np.all()

parent 4ee20190
No related branches found
No related tags found
1 merge request!13v0.7.0
......@@ -288,7 +288,7 @@ class Bunch:
cov_z = np.cov(self['tau'], self['delta'])
if (np.array(self.ring.optics.local_dispersion)
!= np.array([0, 0, 0, 0])).all():
!= np.array([0, 0, 0, 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