Skip to content

Commit 55eaf72

Browse files
committed
Adapt threshold in test (new xtrack)
1 parent f7db6b6 commit 55eaf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_hllhc14_b1_only.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_hllhc14_b1_only_1_install_beambeam():
112112
assert np.isclose(tw1_b1['betx', f'ip{ipn}'], tw0_b1['betx', f'ip{ipn}'], rtol=1e-5, atol=0)
113113
assert np.isclose(tw1_b1['bety', f'ip{ipn}'], tw0_b1['bety', f'ip{ipn}'], rtol=1e-5, atol=0)
114114

115-
assert np.isclose(tw1_b1['px', f'ip{ipn}'], tw0_b1['px', f'ip{ipn}'], rtol=1e-9, atol=0)
116-
assert np.isclose(tw1_b1['py', f'ip{ipn}'], tw0_b1['py', f'ip{ipn}'], rtol=1e-9, atol=0)
115+
assert np.isclose(tw1_b1['px', f'ip{ipn}'], tw0_b1['px', f'ip{ipn}'], rtol=1e-8, atol=0)
116+
assert np.isclose(tw1_b1['py', f'ip{ipn}'], tw0_b1['py', f'ip{ipn}'], rtol=1e-8, atol=0)
117117

118118
def test_hllhc14_b1_only_2_tuning():
119119

0 commit comments

Comments
 (0)