Skip to content

Commit ef8cc31

Browse files
chore: auto fixes from pre-commit hooks
1 parent c0b0db9 commit ef8cc31

File tree

1 file changed

+3
-1
lines changed
  • src/ansys/geometry/core/shapes/curves

1 file changed

+3
-1
lines changed

src/ansys/geometry/core/shapes/curves/nurbs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ def length(self, num_points: int = None) -> Real:
115115
"""
116116
if num_points is None:
117117
num_spans = len(self._nurbs_curve.knotvector) - (2 * self._nurbs_curve.degree) - 1
118-
num_points = max(num_spans * 10, 50) # 10 samples per span, floor of 50 ensures accuracy
118+
num_points = max(
119+
num_spans * 10, 50
120+
) # 10 samples per span, floor of 50 ensures accuracy
119121

120122
self._nurbs_curve.sample_size = num_points
121123

0 commit comments

Comments
 (0)