We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c250c79 + 3b0fe3f commit 72f8543Copy full SHA for 72f8543
xplt/line.py
@@ -36,7 +36,7 @@ def element_strength(element, n):
36
37
def nominal_order(element):
38
"""Get nominal element order (even if coefficients might be zero)"""
39
- if element.__class__.__name__ == "Bend": # avoid using type to support Views
+ if element.__class__.__name__ in ["Bend", "RBend"]: # avoid using type to support Views
40
return 0
41
if hasattr(element, "length"):
42
for n in range(10, -1, -1):
@@ -384,6 +384,7 @@ def ang(a):
384
# map element type to order when order is not in survey
385
for type, o in {
386
"Bend": 0,
387
+ "RBend": 0,
388
"Quadrupole": 1,
389
"Sextupole": 2,
390
"Octupole": 3,
0 commit comments