Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/napari_iohub/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,16 @@ def plate_to_layers(
first_blocks = next(a for a in plate_arrays[0] if a is not None)
fill_args = [(b.shape, b.dtype) for b in first_blocks]
plate_levels = []
for level, _ in enumerate(first_blocks):
for level, first_block in enumerate(first_blocks):
plate_level = []
for r in plate_arrays:
row_level = []
for c in r:
if c is None:
arr = da.zeros(
shape=fill_args[level][0], dtype=fill_args[level][1]
shape=fill_args[level][0],
dtype=fill_args[level][1],
chunks=first_block.chunksize,
)
else:
arr = c[level]
Expand Down