From 90cd383b9fba42af81efd1e8da204a2687c043b3 Mon Sep 17 00:00:00 2001 From: Chris Madge Date: Mon, 15 May 2023 15:32:30 +0100 Subject: [PATCH] np.int deprecated in numpy versions beyond 1.20, changed to np.int32 --- iglu_datasets/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iglu_datasets/task.py b/iglu_datasets/task.py index 3a4845de..09de8395 100644 --- a/iglu_datasets/task.py +++ b/iglu_datasets/task.py @@ -173,7 +173,7 @@ def to_dense(cls, blocks): """ if isinstance(blocks, (list, tuple)): if all(isinstance(b, (list, tuple)) for b in blocks): - grid = np.zeros(BUILD_ZONE_SIZE, dtype=np.int) + grid = np.zeros(BUILD_ZONE_SIZE, dtype=np.int32) for x, y, z, block_id in blocks: grid[y + 1, x + BUILD_ZONE_SIZE_X // 2, z + BUILD_ZONE_SIZE_Z // 2] = block_id blocks = grid