Skip to content

Commit

Permalink
Merge pull request #192 from Ablinne/ab/fix_191
Browse files Browse the repository at this point in the history
Particle momenta `py` and `pz` were swapped.

Fix #191
  • Loading branch information
skuschel authored Jan 8, 2019
2 parents 94622ce + bd97954 commit 7db6c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postpic/particles/scalarproperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def __call__(self, expr):
ScalarProperty('z', 'z', 'm'),
ScalarProperty('y * 1e6', 'z_um', r'$\mu$ m'),
ScalarProperty('px', 'px', 'kg*m/s'),
ScalarProperty('py', 'pz', 'kg*m/s'),
ScalarProperty('pz', 'py', 'kg*m/s'),
ScalarProperty('py', 'py', 'kg*m/s'),
ScalarProperty('pz', 'pz', 'kg*m/s'),
ScalarProperty('sqrt(px**2 + py**2 + pz**2)', 'p', 'kg*m/s'),
ScalarProperty('(px**2 + py**2 + pz**2)/(mass * c)**2', '_np2', ''),
ScalarProperty('_np2 / (sqrt(1 + _np2) + 1)', 'gamma_m1', ''),
Expand Down

0 comments on commit 7db6c38

Please sign in to comment.