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

Bugfix : wrong local values in Optics

parent b1afc8ff
No related branches found
No related tags found
No related merge requests found
......@@ -66,11 +66,11 @@ class Optics:
self.use_local_values = False
self.load_from_AT(lattice_file, **kwargs)
if local_beta is None:
self.local_beta = np.mean(self.beta_array)
self.local_beta = np.mean(self.beta_array, axis=1)
else:
self.local_beta = local_beta
if local_alpha is None:
self.local_alpha = np.mean(self.alpha_array)
self.local_alpha = np.mean(self.alpha_array, axis=1)
else:
self.local_alpha = local_alpha
if local_dispersion is None:
......
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