Skip to content

Commit

Permalink
get omero_dtype in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Dec 13, 2023
1 parent a2feaf0 commit d1bb6e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/omero_zarr/raw_pixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def add_raw_image(
tile_height: Optional[int] = None,
) -> List[str]:
pixels = image.getPrimaryPixels()
omero_dtype = image.getPixelsType()
pixelTypes = {
PixelsTypeint8: ["b", np.int8],
PixelsTypeuint8: ["B", np.uint8],
Expand All @@ -119,8 +120,7 @@ def add_raw_image(
PixelsTypefloat: ["f", np.float32],
PixelsTypedouble: ["d", np.float64],
}
pixelType = pixels.getPixelsType().value
d_type = pixelTypes[pixelType][1]
d_type = pixelTypes[omero_dtype][1]
size_c = image.getSizeC()
size_z = image.getSizeZ()
size_x = image.getSizeX()
Expand Down

0 comments on commit d1bb6e2

Please sign in to comment.