Skip to content

Commit 52ea25a

Browse files
committed
Adapt test
1 parent eb2a235 commit 52ea25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_twiss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ def test_twiss_init_file(test_context):
13651365
'mux', 'muy', 'x', 'y', 'px', 'py']
13661366

13671367
# check at a location downsteam
1368-
loc_check = line.element_names[line.element_names.index(location) + 300]
1368+
loc_check = 'bpm.30r6.b1'
13691369
for var in check_vars:
13701370
# Check at starting point
13711371
xo.assert_allclose(tw[var, location], tw_full[var, location], atol=1e-9, rtol=0)

0 commit comments

Comments
 (0)