Skip to content

Commit

Permalink
Adapt threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 9, 2023
1 parent 3ce8d8c commit da51ab6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_hllhc14.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def test_hllhc14_1_install_beambeam():
assert np.isclose(tw1_b2.qx, tw0_b2.qx, atol=1e-7, rtol=0)
assert np.isclose(tw1_b2.qy, tw0_b2.qy, atol=1e-7, rtol=0)

assert np.isclose(tw1_b1.dqx, tw0_b1.dqx, atol=5e-4, rtol=0)
assert np.isclose(tw1_b1.dqy, tw0_b1.dqy, atol=5e-4, rtol=0)
assert np.isclose(tw1_b2.dqx, tw0_b2.dqx, atol=5e-4, rtol=0)
assert np.isclose(tw1_b2.dqy, tw0_b2.dqy, atol=5e-4, rtol=0)
assert np.isclose(tw1_b1.dqx, tw0_b1.dqx, atol=1e-3, rtol=0)
assert np.isclose(tw1_b1.dqy, tw0_b1.dqy, atol=1e-3, rtol=0)
assert np.isclose(tw1_b2.dqx, tw0_b2.dqx, atol=1e-3, rtol=0)
assert np.isclose(tw1_b2.dqy, tw0_b2.dqy, atol=1e-3, rtol=0)

for ipn in [1, 2, 3, 4, 5, 6, 7, 8]:
assert np.isclose(tw1_b1['betx', f'ip{ipn}'], tw0_b1['betx', f'ip{ipn}'], rtol=1e-5, atol=0)
Expand Down

0 comments on commit da51ab6

Please sign in to comment.