Skip to content

Commit

Permalink
Handle len(first_well_image.data) == 0 for missing Plate labels
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jun 28, 2022
1 parent 0bdbdbe commit 7bb2cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ome_zarr/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,13 @@ def get_pyramid_lazy(self, node: Node) -> None:
img_data = self.first_well_image.data
img_pyramid_shapes = [d.shape for d in img_data]
level = 0
self.numpy_type = img_data[level].dtype

LOGGER.debug(f"img_pyramid_shapes: {img_pyramid_shapes}")

# Create a dask pyramid for the plate
pyramid = []
for level, tile_shape in enumerate(img_pyramid_shapes):
self.numpy_type = img_data[level].dtype
lazy_plate = self.get_stitched_grid(level, tile_shape)
pyramid.append(lazy_plate)

Expand Down

0 comments on commit 7bb2cb4

Please sign in to comment.