Skip to content

Commit

Permalink
Merge pull request #17 from desy-ml/16-screen-conversion
Browse files Browse the repository at this point in the history
Fix screen conversion with ARBCBSCE1
  • Loading branch information
jank324 authored Feb 1, 2023
2 parents a19f262 + 867d3fc commit 4b88e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheetah/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def ocelot2cheetah(element, warnings=True):
return acc.VerticalCorrector(element.l, element.angle, name=element.id)
elif isinstance(element, oc.Cavity):
return acc.Cavity(element.l, name=element.id)
elif isinstance(element, oc.Monitor) and "SCR" in element.id:
elif isinstance(element, oc.Monitor) and "BSC" in element.id:
if warnings:
print(
"WARNING: Diagnostic screen was converted with default screen properties."
Expand Down

0 comments on commit 4b88e19

Please sign in to comment.