Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not read ome tifs generated by aicsimageio without first installing bioio-tifffile #11

Open
TimMonko opened this issue Apr 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TimMonko
Copy link

TimMonko commented Apr 8, 2024

Describe the Bug

bioio-ome-tiff does not read ome.tiff files generated by aicsimageio.writers.OmeTiffWriter. required to additionally install bioio-tifffile without any suggestion to the user in the error message. Perhaps this is true for other ome.tiffs (I just don't have them at the moment)

Expected Behavior

Files genereated by OmeTiffWriter do properly have OME xml metadata, so I would expect that installing solely bioio and bioio-ome-tiff would allow reading of these ome.tif files.

Reproduction

!pip install bioio bioio-ome-tiff
from bioio import BioImage
img = BioImage(ome_tif_img_path)

error

!pip install bioio-tifffile
img = BioImage(ome_tif_img_path)

now it works!

Environment

  • OS Version: Windows 11
  • aicsimageio Version: 4.11.0 (or 4.14.x)
  • bioio-ome-tiff Version: 1.0.0
  • bioio Version: 1.0.1
  • (required) bioio-tifffile Version: 1.0.0
@TimMonko
Copy link
Author

I'm updating this comment to say that I was initially incorrect in my assumption about needing bioio-tifffile prior to reading the image. Instead, this points more closely to issue #38 in bioio. Today I set up bioio on a new machine and found that again just pip installing bioio and bioio-ome-tiff does not result in opening my images (which have a .tif extension and ome metadata). However, if I specify the bioio-ome-tiff reader as in bioio issue #38, then the image is successfully read. This works:

img = BioImage(
    img_path,
    reader=bioio_ome_tiff.Reader
)

but as in the other issue where it does want to read these images with bioio-ome-tiff by default/at all, this does not:
img = BioImage(img_path)
Again, installing bioio-tifffile does allow the image to be read by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant