iagapov / ocelot

Main repository moved to https://github.com/ocelot-collab/ocelot
GNU General Public License v3.0
8 stars 11 forks source link

desy.demos.ebeam.track_flash2 crashes #46

Closed iagapov closed 8 years ago

iagapov commented 8 years ago

charge = 1e-09 Traceback (most recent call last): File "track_flash2.py", line 40, in p_array, charge_array = astra_beam2particleArray(filename='elegant_files/flash_out_200000.ast') File "/data/netapp/xfel/products/test/ocelot/adaptors/astra2ocelot.py", line 50, in astra_beam2particleArray xxstg = exact_xp_2_xxstg(xp, gamref) File "/data/netapp/xfel/products/test/ocelot/adaptors/astra2ocelot.py", line 13, in exact_xp_2_xxstg u = u/np.linalg.norm(u, 2, 1).reshape((N, 1)) TypeError: norm() takes at most 2 arguments (3 given) [iagapov@it-hpc-wgs01]/data/netapp/xfel/products/desy/demos/ebeam/flash%

iagapov commented 8 years ago

due to older numpy version (1.6) will not fix