From 4e1338da02ef9156556db47af372abdc3fa9ed1d Mon Sep 17 00:00:00 2001 From: Ariana Barzinpour Date: Tue, 20 Jun 2023 04:02:11 +0000 Subject: [PATCH] replace np.bool with bool --- Tools/dea_tools/datahandling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/dea_tools/datahandling.py b/Tools/dea_tools/datahandling.py index 8cb84b0e3..1aca539a8 100644 --- a/Tools/dea_tools/datahandling.py +++ b/Tools/dea_tools/datahandling.py @@ -692,8 +692,8 @@ def wofs_fuser(dest, src): Note: this is a copy of the function located here: https://github.com/GeoscienceAustralia/digitalearthau/blob/develop/digitalearthau/utils.py """ - empty = (dest & 1).astype(np.bool) - both = ~empty & ~((src & 1).astype(np.bool)) + empty = (dest & 1).astype(bool) + both = ~empty & ~((src & 1).astype(bool)) dest[empty] = src[empty] dest[both] |= src[both] @@ -739,7 +739,7 @@ def dilate(array, dilation=10, invert=True): array = ~array return ~binary_dilation( - array.astype(np.bool), structure=kernel.reshape((1,) + kernel.shape) + array.astype(bool), structure=kernel.reshape((1,) + kernel.shape) )