Skip to content

Commit 995b5d6

Browse files
authored
Merge pull request #787 from martinfleis/make-valid-compat
COMPAT: fix backwards compatibility with old geopandas
2 parents bcbe430 + e8eb3c7 commit 995b5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpysal/cg/voronoi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def voronoi_frames(
466466
# ensure validity as union can occasionally produce invalid polygons that may
467467
# break the intersection below
468468
if not polygons.is_valid.all():
469-
polygons = polygons.make_valid()
469+
polygons = shapely.make_valid(polygons)
470470

471471
# Clip polygons if limit is provided
472472
if limit is not None:

0 commit comments

Comments
 (0)