@lomereiter noticed the parser was failing for some imzML files due to the "Spectrum representation" not being found see #21.
Created quick fix so that the Spectrum representation is extracted in cases where the "centroid" and "profile" details are in the "spectrum" section of the imzML (or referenced in the spectrum section using the "referenceableParamGroup".
2 things to consider for longer term fixes and enhancements:
It might be worth re-thinking how we extract metadata from the spectrum section of the mzML or imzML. As at the moment the two different python classes (mzML, imzML) do this differently.
More "try and exception" to prevent the program crashing when a parameter is not found
@lomereiter noticed the parser was failing for some imzML files due to the "Spectrum representation" not being found see #21.
Created quick fix so that the Spectrum representation is extracted in cases where the "centroid" and "profile" details are in the "spectrum" section of the imzML (or referenced in the spectrum section using the "referenceableParamGroup".
2 things to consider for longer term fixes and enhancements: