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, ) -