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

OME-XML: populate original metadata table #4157

Closed melissalinkert closed 3 months ago

melissalinkert commented 4 months ago

Without this PR, showinf -nopix on any OME-XML file with OriginalMetadata annotations should show that the annotations are not stored in the reader's original metadata table. This issue was originally noticed with OME/METADATA.ome.xml files produced by bioformats2raw.

With this PR, showinf -nopix on the same test data should show that the original metadata table is populated as expected.

I'm not entirely sure why this was commented out in the first place, but that was ~14 years ago. I suspect we did not have a working method that created a Hashtable from OriginalMetadata annotations in an OMEXMLMetadata.