ome / bioformats

Bio-Formats is a Java library for reading and writing data in life sciences image file formats. It is developed by the Open Microscopy Environment. Bio-Formats is released under the GNU General Public License (GPL); commercial licenses are available from Glencoe Software.
https://www.openmicroscopy.org/bio-formats
GNU General Public License v2.0
378 stars 241 forks source link

Add test for image names when resolutions are not flattened #4114

Closed melissalinkert closed 8 months ago

melissalinkert commented 10 months ago

In most cases, the Image names stored in a MetadataStore will not depend on hasFlattenedResolutions(). For some pyramid formats (e.g. SVS, CZI), the Image names are noticeably different.

This updates the config file generation to add an Alternate_Name representing the unflattened Image name, if the unflattened Image name is different from the flattened Image name for a particular series/resolution. The new testUnflattenedImageNames checks this value, and errors if the name provided by an unflattened reader does not match either configured name.

I would expect this to cause test failures for SVS, CZI, and potentially others. I am happy for this to be excluded once at least test run has completed (so we know the scope of config changes required).

melissalinkert commented 10 months ago

Unsurprisingly, this caused a number of build failures:

Excluding for the moment, can re-include once a configuration PR is ready.

sbesson commented 10 months ago

On the positive side, it looks like tests have been failing if and only if the format is multi-resolution which was the expectation.

sbesson commented 9 months ago

As discussed today with @melissalinkert and @joshmoore, I agree the latest state of this PR puts us in a nice compromise between:

Next step here is to update the configuration files for all pyramidal file formats and re-include this PR in the nightly CI builds