Skip to content

Commit 4d062bb

Browse files
committed
Workaround for xsuite/xsuite#693
1 parent 0b25d15 commit 4d062bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xplt/line.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ def ang(a):
374374
) # angle between plot x-axis and radial vector of bending
375375

376376
LENGTH = get(survey, "length", np.zeros(len(NAME)))
377-
IS_THICK = get(survey, "isthick", np.zeros(len(NAME), "bool"))
377+
IS_THICK = np.array(get(survey, "isthick", [False] * len(NAME))) | (
378+
np.array(get(survey, "length", [0] * len(NAME))) > 0
379+
)
378380
ORDER = get(survey, "order", -np.ones(len(NAME), "int"))
379381
if (TYPE := get(survey, "element_type", None)) is not None:
380382
# map element type to order when order is not in survey

0 commit comments

Comments
 (0)