Skip to content

Commit

Permalink
Added assert
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Apr 8, 2021
1 parent bf7b42b commit 7cd96f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/002_beambeam/000_beambeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@

bb_b1_pyst.track(p_pyst)

assert np.allclose(p_pyst.px,
p2np(particles_b1.px[:n_probes]))
assert np.allclose(p_pyst.py,
p2np(particles_b1.py[:n_probes]))

import matplotlib.pyplot as plt
plt.close('all')
plt.figure()
Expand Down

0 comments on commit 7cd96f5

Please sign in to comment.