Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 20, 2023
1 parent 7bded1f commit bc10523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/epac2004_benchmarks/analysis_bithermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_moments(beam):
)

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

assert np.allclose(
Expand All @@ -86,7 +86,7 @@ def get_moments(beam):
)

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

assert np.allclose(
Expand Down
4 changes: 2 additions & 2 deletions examples/epac2004_benchmarks/analysis_thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_moments(beam):
)

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

assert np.allclose(
Expand All @@ -86,7 +86,7 @@ def get_moments(beam):
)

atol = 0.0 # ignored
rtol = 6.0*num_particles**-0.5 # from random sampling of a smooth distribution
rtol = 6.0 * 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 bc10523

Please sign in to comment.