From 451012e309b60a968379cacbe59f63683bcd828f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20J=C3=BAnior?= Date: Thu, 31 Oct 2024 18:10:41 -0700 Subject: [PATCH] Update meta.py to substitute np.bool for bool np.bool is deprecated in numpy >=1.20 and this simple substitution fixes it --- imgaug/augmenters/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgaug/augmenters/meta.py b/imgaug/augmenters/meta.py index 9279a0a4d..7c47f189f 100644 --- a/imgaug/augmenters/meta.py +++ b/imgaug/augmenters/meta.py @@ -3384,7 +3384,7 @@ def _get_augmenter_active(self, nb_rows, random_state): # pylint: disable=invalid-name nn = self._get_n(nb_rows, random_state) nn = [min(n, len(self)) for n in nn] - augmenter_active = np.zeros((nb_rows, len(self)), dtype=np.bool) + augmenter_active = np.zeros((nb_rows, len(self)), dtype=bool) for row_idx, n_true in enumerate(nn): if n_true > 0: augmenter_active[row_idx, 0:n_true] = 1