Skip to content

Commit

Permalink
Update analysis_kicker.py
Browse files Browse the repository at this point in the history
Relax tolerance again.
  • Loading branch information
cemitch99 authored Aug 4, 2023
1 parent 6e91954 commit c5254c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/kicker/analysis_kicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_moments(beam):
)

atol = 0.0 # ignored
rtol = 1.5 * num_particles**-0.5 # from random sampling of a smooth distribution
rtol = 1.8 * num_particles**-0.5 # from random sampling of a smooth distribution
print(f" rtol={rtol} (ignored: atol~={atol})")

assert np.allclose(
Expand Down Expand Up @@ -106,7 +106,7 @@ def get_moments(beam):
)

atol = 0.0 # ignored
rtol = 1.5 * num_particles**-0.5 # from random sampling of a smooth distribution
rtol = 1.8 * num_particles**-0.5 # from random sampling of a smooth distribution
print(f" rtol={rtol} (ignored: atol~={atol})")

assert np.allclose(
Expand Down

0 comments on commit c5254c7

Please sign in to comment.