From 3f7a561738d6d6f67aad23995200227941f3bef1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:46:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/iota_lens/analysis_iotalens_sdep_aperture.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/iota_lens/analysis_iotalens_sdep_aperture.py b/examples/iota_lens/analysis_iotalens_sdep_aperture.py index 1b232acec..5f7a822d8 100755 --- a/examples/iota_lens/analysis_iotalens_sdep_aperture.py +++ b/examples/iota_lens/analysis_iotalens_sdep_aperture.py @@ -92,7 +92,7 @@ def get_moments(beam): 1.020826e-04, 2.868312e-06, 3.163618e-06, - 5.400000e+00, + 5.400000e00, ], rtol=rtol, atol=atol, @@ -101,7 +101,7 @@ def get_moments(beam): charge_i = initial_beam.get_attribute("charge_C") charge_f = final_beam.get_attribute("charge_C") -loss_pct = 100.0*(charge_i - charge_f)/charge_i +loss_pct = 100.0 * (charge_i - charge_f) / charge_i print(f" fractional loss (%) = {loss_pct}") @@ -109,9 +109,6 @@ def get_moments(beam): print(f" atol={atol}") assert np.allclose( [loss_pct], - [ - 6.0824 - ], + [6.0824], atol=atol, ) -