vidriotech / ScanImageTiffReader.jl

Julia bindings for the ScanImage Tiff Reader
Other
4 stars 0 forks source link

Metadata isn't a JSON string #2

Open romainFr opened 5 years ago

romainFr commented 5 years ago

This is a minor issue, but the documentation describes metadata as a JSON string (that can be parsed with JSON.parsed). At least in the files I'm generating with SI2017b, it doesn't seem to be true. The metadata string starts with: SI.LINE_FORMAT_VERSION = 1\nSI.TIFF_FORMAT_VERSION = 3\nSI.VERSION_MAJOR = '2017b'\nSI.VERSION_MINOR = '1'... which is not JSON. I can see some JSON much later in the string (for the part that describes the ROIs: {\n \"RoiGroups\": {\n \"imagingRoiGroup\": {\n ... Otherwise, thanks a lot for making a Julia package of your TiffReader!

nclack commented 5 years ago

You're right. The documentation is misleading.

In case you're interested, you can toggle scanimage to output all the metadata as JSON using hSI.useJsonHeaderData (api docs).