Skip to content

Commit

Permalink
Adjusted thresholds on chromaticity
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed May 29, 2023
1 parent 9a5d376 commit 1a3b91a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_hllhc14_b1_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def test_hllhc14_b1_only_1_install_beambeam():
assert np.isclose(tw1_b1.qx, tw0_b1.qx, atol=1e-7, rtol=0)
assert np.isclose(tw1_b1.qy, tw0_b1.qy, atol=1e-7, rtol=0)

assert np.isclose(tw1_b1.dqx, tw0_b1.dqx, atol=1e-4, rtol=0)
assert np.isclose(tw1_b1.dqy, tw0_b1.dqy, atol=1e-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)

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
8 changes: 4 additions & 4 deletions tests/test_lhc_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ def test_lhc_ion_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=1e-4, rtol=0)
assert np.isclose(tw1_b1.dqy, tw0_b1.dqy, atol=1e-4, rtol=0)
assert np.isclose(tw1_b2.dqx, tw0_b2.dqx, atol=1e-4, rtol=0)
assert np.isclose(tw1_b2.dqy, tw0_b2.dqy, atol=1e-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 1a3b91a

Please sign in to comment.