Skip to content

Commit

Permalink
fix for chunked_ref dataset selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Oct 30, 2019
1 parent f4a7ac5 commit 9f274f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions h5pyd/_hl/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,12 @@ def __getitem__(self, args):
chunk_layout = self.id.chunks
if chunk_layout is None:
chunk_layout = self._shape
elif isinstance(chunk_layout, dict):
# CHUNK_REF layout
if "dims" not in chunk_layout:
self.log.error(f"Unexpected chunk_layout: {chunk_layout}")
else:
chunk_layout = tuple(chunk_layout["dims"])

max_chunks = 1
split_dim = -1
Expand Down

0 comments on commit 9f274f7

Please sign in to comment.