Update scripts/build_bus_regions.py

Co-authored-by: Fabian Hofmann <fab.hof@gmx.de>
This commit is contained in:
Fabian Neumann 2022-06-07 10:57:01 +02:00 committed by GitHub
parent a4132919a0
commit d5db3b8d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,9 +117,7 @@ def voronoi_partition_pts(points, outline, no_multipolygons=False):
return poly return poly
polygons = [demultipolygon(poly) for poly in polygons] polygons = [demultipolygon(poly) for poly in polygons]
polygons_arr = np.empty((len(polygons),), 'object') return np.array(polygons, dtype=object)
polygons_arr[:] = polygons
return polygons_arr
if __name__ == "__main__": if __name__ == "__main__":