Skip to content

Commit

Permalink
fix #7366 madx import doesn't modify madx input data
Browse files Browse the repository at this point in the history
  • Loading branch information
moellep committed Nov 14, 2024
1 parent 10927b1 commit 89bdaba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sirepo/template/madx_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def _copy_code_variables(self, data):

def _copy_elements(self, data):
for el in data.models.elements:
el = copy.deepcopy(el)
if el.type not in self.field_map:
pkdlog("Unhandled element type: {}", el.type)
el.type = self.drift_type
Expand Down

0 comments on commit 89bdaba

Please sign in to comment.