From 21cdc6a350f35a04629903d0199915c1a3f9927f Mon Sep 17 00:00:00 2001 From: Jordao Bragantini Date: Sat, 1 Jun 2024 09:34:33 -0700 Subject: [PATCH] fixed missing value is None --- iohub/daxi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iohub/daxi.py b/iohub/daxi.py index 8861d454..fa31e01f 100644 --- a/iohub/daxi.py +++ b/iohub/daxi.py @@ -46,8 +46,13 @@ def __init__( with open(self._data_path / "metadata.yaml") as f: self._metadata = yaml.safe_load(f) - self._missing_value = missing_value self._dtype = np.uint16 + + if missing_value is None: + self._missing_value = np.iinfo(self._dtype).max + else: + self._missing_value = missing_value + self._wavelengths = self._metadata[self._CHANNELS_KEY] shape_dict = self._metadata[self._SHAPE_KEY]