From d5db3b8d8060dfd7d4a33c5749a4c2c70ef64864 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Tue, 7 Jun 2022 10:57:01 +0200 Subject: [PATCH] Update scripts/build_bus_regions.py Co-authored-by: Fabian Hofmann --- scripts/build_bus_regions.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build_bus_regions.py b/scripts/build_bus_regions.py index 4f2369b6..382a32e8 100644 --- a/scripts/build_bus_regions.py +++ b/scripts/build_bus_regions.py @@ -117,9 +117,7 @@ def voronoi_partition_pts(points, outline, no_multipolygons=False): return poly polygons = [demultipolygon(poly) for poly in polygons] - polygons_arr = np.empty((len(polygons),), 'object') - polygons_arr[:] = polygons - return polygons_arr + return np.array(polygons, dtype=object) if __name__ == "__main__":