File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2828def nominal_order (element ):
2929 """Get nominal element order (even if coefficients might be zero)"""
3030 if element .__class__ .__name__ in [
31- "Bend" , "RBend" , 'ThickSliceBend' , 'ThickSliceRBend' ]: # avoid using type to support Views
31+ "Bend" ,
32+ "RBend" ,
33+ "ThickSliceBend" ,
34+ "ThickSliceRBend" ,
35+ ]: # avoid using type to support Views
3236 return 0
3337 if hasattr (element , "length" ):
3438 for n in range (10 , - 1 , - 1 ):
@@ -449,7 +453,7 @@ def ang(a):
449453 color = f"C{ order } " if order >= 0 else "k" ,
450454 length = length or 0 ,
451455 label = {
452- 0 : "Bending magnet" if (arc or (' Bend' in TYPE [i ])) else None ,
456+ 0 : "Bending magnet" if (arc or (" Bend" in TYPE [i ])) else None ,
453457 1 : "Quadrupole magnet" ,
454458 2 : "Sextupole magnet" ,
455459 3 : "Octupole magnet" ,
You can’t perform that action at this time.
0 commit comments