Skip to content

Commit d309231

Browse files
committed
Fix test
1 parent 63d7480 commit d309231

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_xwakes_tune_shift.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def test_tune_shift_transverse(wake_type, plane):
5151

5252
one_turn_map = xt.LineSegmentMap(length=1, qx=0.28, qy=0.31, qs=0.1e-3, bets=100)
5353

54-
line_no_wake = xt.Line(elements=[one_turn_map])
55-
line_with_wake = xt.Line(elements=[one_turn_map, wake])
54+
line_no_wake = xt.Line(elements=[one_turn_map.copy()])
55+
line_with_wake = xt.Line(elements=[one_turn_map.copy(), wake])
5656

5757
line_no_wake.particle_ref = xt.Particles(p0c=2e9)
5858
line_with_wake.particle_ref = xt.Particles(p0c=2e9)
@@ -126,8 +126,8 @@ def test_tune_shift_longitudinal():
126126

127127
one_turn_map = xt.LineSegmentMap(length=1, qx=0.28, qy=0.31, qs=5e-3, bets=100)
128128

129-
line_no_wake = xt.Line(elements=[one_turn_map])
130-
line_with_wake = xt.Line(elements=[one_turn_map, wake])
129+
line_no_wake = xt.Line(elements=[one_turn_map.copy()])
130+
line_with_wake = xt.Line(elements=[one_turn_map.copy(), wake])
131131

132132
line_no_wake.particle_ref = xt.Particles(p0c=2e9)
133133
line_with_wake.particle_ref = xt.Particles(p0c=2e9)

0 commit comments

Comments
 (0)