Skip to content
Snippets Groups Projects
Commit bed6c72d authored by Mamad Eshraqi's avatar Mamad Eshraqi
Browse files

added numpy to emit_geo

parent e8dca096
No related branches found
No related tags found
No related merge requests found
Pipeline #11431 passed
...@@ -141,6 +141,7 @@ def emit_geo(u_up_array): ...@@ -141,6 +141,7 @@ def emit_geo(u_up_array):
------- -------
geometrical emittance of the distribution/array in units of pi.mm.mrad geometrical emittance of the distribution/array in units of pi.mm.mrad
''' '''
import numpy as np
u_shift = u_up_array[:,0] # x u_shift = u_up_array[:,0] # x
up_shift = u_up_array[:,1] # x' up_shift = u_up_array[:,1] # x'
u = u_shift - np.average(u_shift) u = u_shift - np.average(u_shift)
......
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