svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
54 stars 27 forks source link

Fix importdistribution p #78

Closed ChristopherMayes closed 1 year ago

ChristopherMayes commented 1 year ago

importdistribution imports particles from a file that codes like Elegant produce. Previously it was interpreting the p dataset as the kinetic energy divided by mc^2, which is not what Elegant produces. This PR: