Skip to content

Commit

Permalink
Hack to avoid reference datatypes in chunk by chunk selections.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lawrence committed Mar 3, 2024
1 parent 96dc178 commit eb44c15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyfive/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,12 @@ def get_data(self, args=None):
else:
return self._get_contiguous_data(self.property_offset)[args]
if self.layout_class == 2: # chunked storage
# If reading all chunks, use the (hopefully faster) "do it one go" method.
# If the dtype is a tuple, we don't really know how to deal with it chunk by chunk in this version
if args is None:
return self._get_chunked_data(self.msg_offset)
elif isinstance(self.dtype, tuple):
return self._get_chunked_data(self.msg_offset)[args]
else:
return self._get_selection_via_chunks(args)

Expand Down

0 comments on commit eb44c15

Please sign in to comment.