Skip to content

Commit 941b365

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a2f4b21 commit 941b365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xplt/line.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def __init__(
269269
`{"regex": {...}}`. For each matching element name, the options are used.
270270
271271
"""
272-
272+
273273
kwargs["_properties"] = defaults(
274274
kwargs.get("_properties"),
275275
X=DataProperty("X", "m"),
@@ -445,7 +445,7 @@ def ang(a):
445445
order = effective_order(element)
446446
if not length:
447447
length = get(element, "length", 0)
448-
448+
449449
rot_s_rad = get(element, "rot_s_rad", 0)
450450
rot_x_rad = get(element, "rot_x_rad", 0)
451451
rot_y_rad = get(element, "rot_y_rad", 0)
@@ -486,7 +486,7 @@ def ang(a):
486486
box_style.pop("label") # prevent duplicate legend entries
487487
else:
488488
legend_entries.append(box_style.get("label"))
489-
489+
490490
# get the shift angle of the projection
491491
proj = self.projection[1].lower()
492492
shift_angle = {"x": rot_x_rad, "y": rot_y_rad, "z": rot_s_rad}.get(proj, 0)
@@ -497,7 +497,7 @@ def ang(a):
497497
d = length * tanc(arc / 2) / 2
498498
x += d * np.cos(ang(rt) + ang(shift_angle)) + shift_x
499499
y += d * np.sin(ang(rt) + ang(shift_angle)) + shift_y
500-
500+
501501
if length > 0 and arc:
502502
# bending elements as wedge
503503
rho = length / arc

0 commit comments

Comments
 (0)