-
Notifications
You must be signed in to change notification settings - Fork 50
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
set_scene does not change scene when scene ids are duplicated #400
Comments
I think this is because the function is simply misnamed? |
We have tests but they only check shape 😬 https://github.com/AllenCellModeling/aicsimageio/blob/main/aicsimageio/tests/readers/test_bioformats_reader.py#L385 |
works for me! |
maybe run_image_file_checks should test scene index too? |
So this has nothing to do with my scene/series name duplication at all? |
At the current moment, I do not believe so because you are providing an index and not name. |
Hmm, I tried making the changes in those commits; there is no difference in the behavior |
Correction: this is likely because bioformats itself does not support multiple images (read: scenes in an AICSImageIO context) for Leica LOF: https://docs.openmicroscopy.org/bio-formats/6.9.1/supported-formats.html |
Yet I can load multiple scenes via bio formats into FIJI from the same file? |
cc @joshmoore / someone from bioformats? Is the table out of date? Are LOF files actually supported? |
Support for XLEF and LOF files was added in 6.9.0 as an external contribution from Leica Microsystems. So it should be supported if you are using the latest 6.9.1 release. The LOF reader will only read individual files |
I did a little more investigation; the problem seems to be not specific to LOF files. When opening a ome-tiff using bio-formats reader, I get the same silent failure to switch scenes. When using the ome_tiff_reader, everything works correctly. |
@tlambert03 would it be possible that the bioformats jar that ships with the python package simply doesn't have the latest version? Do you package that manually or is it auto pulled / built? |
needs updating. but I've dragged my feet on that, since we should really be using scyjava. (see tlambert03/bioformats_jar#2) I'll try to get on it soon |
(it's '6.7.0') |
Well now I am confused... It is opening a file format that it didn't officially support at that point |
It never ceases to amaze me how complicated some issues are. As per usual, thanks for all you do |
I have found the bug and updated the PR. @jil24 could you attempt to install and use the branch again. There is a single bug that is maybe related but I will look into next week. |
This should now be fixed and released. |
System and Software
Description
When loading a file via bioformats (a leica LOF) with multiple scenes which are named identically, changing the scene via scene index does not work; no error occurs, but the active scene does not change.
I needed to update the bio formats jar to a more recent version manually since the packaged version does not have LOF support. I have no ability to control scene naming.
The text was updated successfully, but these errors were encountered: