From 30d816ffa86e2ec7ecdd278ee54e05cd2d9fc2aa Mon Sep 17 00:00:00 2001 From: Axel Bocciarelli Date: Thu, 29 Aug 2024 16:19:31 +0200 Subject: [PATCH] Support fetching boolean data as binary --- h5grove/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5grove/utils.py b/h5grove/utils.py index e3094e9..65b9093 100644 --- a/h5grove/utils.py +++ b/h5grove/utils.py @@ -212,7 +212,7 @@ def _sanitize_dtype(dtype: np.dtype) -> np.dtype: :raises ValueError: If trying to sanitize a non-numeric numpy dtype """ - if dtype.kind not in ("f", "i", "u"): + if dtype.kind not in ("f", "i", "u", "b"): raise ValueError(f"Unsupported numpy dtype `{dtype}`. Expected numeric dtype.") # Convert to little endian