-
Notifications
You must be signed in to change notification settings - Fork 5
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
ome-tiff files are being read with wrong preference #79
Comments
Ohhh, maybe I figured out how it works... I'm thinking of two possibilities to resolve this
The use case of this is something like |
We currently only rely on file extension and plugin installation time. You can always install the reader if this becomes a blocker. Hopefully in the future we can move towards something a bit smarter, but none of the alternatives we have encountered have been flexible & performant enough. @TimMonko Do you have any thoughts on improvements? |
Here is what I ended up doing. Not really the most elegant solution, but you could have some kind of setting like bioio.preferred_reader = 'ome-tiff-reader', that intercepts on init of the reader selection (if its compatible). But this is something a user would have to set, instead of the default behavior (which I think makes sense and is ok). This means if someone develops some format competing reader that they prefer (for some reason) they could also specify in settings as necessary, but still keep the other readers for fallback
|
Describe the Bug
Given an image saved with
bioio.OmeTiffWriter.save()
,BioImage
is still defaulting tobioio-tifffile.Reader
instead ofbioio-ome-tiff.Reader
onbioio
version 1.1.0.Expected Behavior
After #55,
bioio-ome-tiff
is supposed to take precedence overbioio-tifffile
when doingBioImage(file_path)
. From what I understand, the file does not need to end with.ome.tiff
but could just end in.tiff
andbioio-ome-tiff
should take preference (this is for an image with a.tiff
ending).Reproduction
bioio.plugin_feasibility_report(file_path)
Reader defaults to bioio-tifffile:
BioImage.determine_plugin(file_path)
But,
bioio_ome_tiff
shows that it was saved properly as an OME-TIFF viaOmeTiffWriter
bioio.plugins.dump_plugins()
Environment
The text was updated successfully, but these errors were encountered: