Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-sweet committed Mar 8, 2024
1 parent 812e0f4 commit 8efcc9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/napari_cryoet_data_portal/_open_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def _handle_image_at_resolution(layer_data: FullLayerData, resolution: Resolutio
data = data[resolution.indices[0]]

Check warning on line 177 in src/napari_cryoet_data_portal/_open_widget.py

View check run for this annotation

Codecov / codecov/patch

src/napari_cryoet_data_portal/_open_widget.py#L176-L177

Added lines #L176 - L177 were not covered by tests

# For explicit dtypes (e.g. labels), materialize data immediately.
# This is needed because the zarr labels annotations use a float32
# dtype. If they used an integer dtype, this could be removed.
if dtype is not None:
if resolution is MULTI_RESOLUTION:
data = [np.asarray(d, dtype=dtype) for d in data]

Check warning on line 184 in src/napari_cryoet_data_portal/_open_widget.py

View check run for this annotation

Codecov / codecov/patch

src/napari_cryoet_data_portal/_open_widget.py#L182-L184

Added lines #L182 - L184 were not covered by tests
Expand Down

0 comments on commit 8efcc9b

Please sign in to comment.