Skip to content

Commit

Permalink
fixed missing value is None
Browse files Browse the repository at this point in the history
  • Loading branch information
JoOkuma committed Jun 1, 2024
1 parent bd0cf60 commit 21cdc6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iohub/daxi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 21cdc6a

Please sign in to comment.