From 31e45df0097ebc5c5f9bb7da5e0f422b1b5e72d9 Mon Sep 17 00:00:00 2001 From: benjaminpope Date: Sun, 1 Sep 2024 21:50:01 +1000 Subject: [PATCH] np.int is deprecated --- src/dtdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dtdata.py b/src/dtdata.py index 42432ee..30cc170 100644 --- a/src/dtdata.py +++ b/src/dtdata.py @@ -60,7 +60,7 @@ def create_training_set(self, nrandom=100, nblocks=5, bspan=50, max_tries=100): """ ids = where(self.mask)[0] ## Get the masked indices - bstarts = np.full(nblocks, -bspan, np.int) ## Starting indices for blocks + bstarts = np.full(nblocks, -bspan, int) ## Starting indices for blocks ## Chunks ## ------