Skip to content

Commit

Permalink
A fix from runing the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 10, 2023
1 parent 4c41e0e commit 1de1957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xtrack/twiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,8 @@ def _build_auxiliary_tracker_with_extra_markers(tracker, at_s, marker_prefix,

auxline = xt.Line(elements=list(tracker.line.elements).copy(),
element_names=list(tracker.line.element_names).copy())
auxline.particle_ref = tracker.line.particle_ref.copy()
if tracker.line.particle_ref is not None:
auxline.particle_ref = tracker.line.particle_ref.copy()

names_inserted_markers = []
markers = []
Expand Down

0 comments on commit 1de1957

Please sign in to comment.