Update scripts/build_bus_regions.py
Co-authored-by: Fabian Hofmann <fab.hof@gmx.de>
This commit is contained in:
parent
a4132919a0
commit
d5db3b8d80
@ -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__":
|
||||||
|
Loading…
Reference in New Issue
Block a user