Skip to content

Commit c89d4e2

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,11 @@ def _get_collection_shape(
123123
outline_alpha: None | float = None,
124124
**kwargs: Any,
125125
) -> PatchCollection:
126-
127126
print(shapes)
128127
patches = []
129128
# remove empty points/polygons
130129
shapes = shapes[shapes["geometry"].apply(lambda geom: not geom.is_empty)]
131-
130+
132131
polygon_df = shapes[
133132
shapes["geometry"].apply(lambda geom: geom.geom_type == "Polygon") # type: ignore[call-overload]
134133
]
@@ -138,7 +137,7 @@ def _get_collection_shape(
138137
circle_df = shapes[
139138
shapes["geometry"].apply(lambda geom: geom.geom_type == "Point") # type: ignore[call-overload]
140139
]
141-
140+
142141
if len(polygon_df) > 0:
143142
patches += [Polygon(p.exterior.coords, closed=True) for p in polygon_df["geometry"]]
144143
if len(circle_df) > 0:

0 commit comments

Comments
 (0)