From 9035385e3255154cb1fcf20e574fd0547edb8385 Mon Sep 17 00:00:00 2001 From: Lindsey Gray Date: Wed, 4 Oct 2023 10:59:29 -0500 Subject: [PATCH] fix: remove use of deprecated numpy.bool --- coffea/analysis_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffea/analysis_tools.py b/coffea/analysis_tools.py index d0b2fcef4..2c7070c5e 100644 --- a/coffea/analysis_tools.py +++ b/coffea/analysis_tools.py @@ -335,7 +335,7 @@ def add(self, name, selection, fill_value=False): selection = coffea.util._ensure_flat(selection, allow_missing=True) if isinstance(selection, numpy.ma.MaskedArray): selection = selection.filled(fill_value) - if selection.dtype != numpy.bool: + if selection.dtype != bool: raise ValueError(f"Expected a boolean array, received {selection.dtype}") if len(self._names) == 0: self._data = numpy.zeros(len(selection), dtype=self._dtype)