Skip to content

Commit 2610a9e

Browse files
style: pre-commit fixes
1 parent f7d96ff commit 2610a9e

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/magpylib_material_response/polyline.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55

66

77
def _find_circle_center_and_tangent_points(
8-
a: np.ndarray,
9-
b: np.ndarray,
10-
c: np.ndarray,
11-
r: float,
12-
max_ratio: float = 1
8+
a: np.ndarray, b: np.ndarray, c: np.ndarray, r: float, max_ratio: float = 1
139
) -> tuple[np.ndarray, np.ndarray, np.ndarray] | None:
1410
"""
1511
Find the center of a circle and its tangent points with given vertices and radius.
@@ -59,7 +55,9 @@ def _find_circle_center_and_tangent_points(
5955
return circle_center, ta, tb
6056

6157

62-
def _interpolate_circle(center: np.ndarray, start: np.ndarray, end: np.ndarray, n_points: int) -> list[np.ndarray]:
58+
def _interpolate_circle(
59+
center: np.ndarray, start: np.ndarray, end: np.ndarray, n_points: int
60+
) -> list[np.ndarray]:
6361
"""
6462
Interpolate points along a circle arc between two points.
6563
@@ -91,11 +89,7 @@ def _interpolate_circle(center: np.ndarray, start: np.ndarray, end: np.ndarray,
9189

9290

9391
def _create_fillet_segment(
94-
a: np.ndarray,
95-
b: np.ndarray,
96-
c: np.ndarray,
97-
r: float,
98-
N: int
92+
a: np.ndarray, b: np.ndarray, c: np.ndarray, r: float, N: int
9993
) -> list[np.ndarray]:
10094
"""
10195
Create a fillet segment with a given radius between three vertices.
@@ -122,7 +116,9 @@ def _create_fillet_segment(
122116
return _interpolate_circle(circle_center, ta, tb, N)
123117

124118

125-
def create_polyline_fillet(polyline: list | np.ndarray, max_radius: float, N: int) -> np.ndarray:
119+
def create_polyline_fillet(
120+
polyline: list | np.ndarray, max_radius: float, N: int
121+
) -> np.ndarray:
126122
"""
127123
Create a filleted polyline with specified maximum radius and number of points.
128124
@@ -205,7 +201,7 @@ def _line_plane_intersection(
205201
plane_point: np.ndarray,
206202
plane_normal: np.ndarray,
207203
line_points: np.ndarray,
208-
line_directions: np.ndarray
204+
line_directions: np.ndarray,
209205
) -> np.ndarray:
210206
"""
211207
Find the intersection points of multiple lines and a plane.

0 commit comments

Comments
 (0)