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
370 stars 241 forks source link

CV7000/8000: fix used files list when TIFFs are in a subdirectory #4203

Open melissalinkert opened 4 days ago

melissalinkert commented 4 days ago

Some CV7000/8000 plates store image data in a separate Image subdirectory. This fixes the used file list calculation to correctly include image files that are in a subdirectory.

curated/cv7000/samples/separate-image-directory is an artificial plate that can be used to test. Without this PR, showinf on the .wpi file should successfully initialize the plate and display a not-blank image, but the list of used files will not include anything in the Image subdirectory. For OMERO imports in particular, this would mean that none of the image files would be transferred.

With this PR, the same test should initialize/display images as before, but the used file list should include everything in the Image subdirectory as well.

This may not be completely safe for a patch release, as allFiles is changed from a String[] to a List<String>, which may affect memo files.