bioformats
bioformats copied to clipboard
ND2: Metadata (acquisition date) lost when parsing TextInfoItems
This issue was raised on forum thread https://forum.image.sc/t/nd2-metadata-wrongly-parsed/80198 and a sample file has been provided that reproduces the issue with Bio-Formats 6.12.0. The sample file is located at scratch/inbox/imagesc-80198.
The main issue with the metadata parsing was fixed in https://github.com/ome/bioformats/pull/3726 for 6.9.0
However in this case some of the metadata is still lost, specifically the acquisition date at the end. The text is initially parsed as per the previous PR, but once it gets to the parseText function, the first attempt to parse the metadata throws an exception which is caught, but the code to handle that scenario then fails to parse the data also.
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/nd2-metadata-wrongly-parsed/80198/8