From 315a16cade71c1cb8ff8876604578119251364fc Mon Sep 17 00:00:00 2001 From: AbigailMcGovern Date: Sat, 12 Aug 2023 15:03:30 +1000 Subject: [PATCH] fix np.bool error --- umetrics/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umetrics/core.py b/umetrics/core.py index adf9a9e..c0ae0aa 100644 --- a/umetrics/core.py +++ b/umetrics/core.py @@ -340,7 +340,7 @@ def __init__(self, image): self.image = image # label it - self.labeled, self.n_labels = label(image.astype(np.bool)) + self.labeled, self.n_labels = label(image.astype(bool)) @property def shape(self):