Skip to content

Commit 9ea8c3c

Browse files
committed
lint
1 parent 2633d4e commit 9ea8c3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/compas_cgal/straight_skeleton_2.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
2-
from compas.geometry import Polygon, normal_polygon
2+
from compas.geometry import Polygon
3+
from compas.geometry import normal_polygon
34
from compas.tolerance import TOL
45

56
from compas_cgal._cgal import straight_skeleton_2
@@ -131,9 +132,7 @@ def create_weighted_offset_polygons_2(points, offset, weights):
131132
offset = float(offset)
132133
W = np.asarray(weights, dtype=np.float64)
133134
if W.shape[0] != V.shape[0]:
134-
raise ValueError(
135-
"The number of weights should be equal to the number of points %d != %d." % (W.shape[0], V.shape[0])
136-
)
135+
raise ValueError("The number of weights should be equal to the number of points %d != %d." % (W.shape[0], V.shape[0]))
137136
if offset < 0:
138137
offset_polygons = straight_skeleton_2.create_weighted_offset_polygons_2_outer(V, abs(offset), W)[1:]
139138
else:

0 commit comments

Comments
 (0)