Skip to content
Snippets Groups Projects
Commit 1cd488cf authored by Lorenzo  ZOLFANELLI's avatar Lorenzo ZOLFANELLI
Browse files

fix: remove deprecated np.bool references

parent e9602403
No related branches found
No related tags found
No related merge requests found
Pipeline #121604 passed
......@@ -277,6 +277,7 @@ class Parser(object):
"""
return {channel: n for n, channel in enumerate(self.metadata["channels"])}
# TODO: create missing test cases for slices
def _get_raw_slice_data(self, xywh, image_group_number, channel, height, width):
"""Reads the raw bytes and the timestamp of a rectangular slice
of an image.
......@@ -322,7 +323,7 @@ class Parser(object):
# Read ROI: row-by-row
image_start_pos = chunk_location + 16 + relative_offset + 8
line_bytemask = np.zeros(size_c, dtype=np.bool)
line_bytemask = np.zeros(size_c, dtype=bool)
line_bytemask[channel] = True
line_bytemask = np.tile(line_bytemask.repeat(2),w)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment