From 867d3fc610e2828c971b82892d84c2ce93d12cfb Mon Sep 17 00:00:00 2001 From: Jan Kaiser Date: Wed, 1 Feb 2023 16:18:23 +0100 Subject: [PATCH] Fix screen conversion with ARBCBSCE1 #16 --- cheetah/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheetah/utils.py b/cheetah/utils.py index 4e438b2a..08910e0e 100644 --- a/cheetah/utils.py +++ b/cheetah/utils.py @@ -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."