alexandrovteam / pyimzML

A parser to read .imzML files with python
Apache License 2.0
32 stars 19 forks source link

always return (x,y,z) coordinates, and set z to 0 if not specific in … #4

Closed andy-d-palmer closed 8 years ago

andy-d-palmer commented 8 years ago

If imzml file has x,y,z coordinates then shape(imzml.coordinates) = [num spectra, 3], if just x,y then shape(imzml.coordinates) = [num spectra, 3].

This is annoying to work with programatically as I keep having to check for the presence of a z dimension.

I propose to always return x,y,z coordinates, and set z to 0 if not specific in the file

lomereiter commented 8 years ago

+1

DarthPumpkin commented 8 years ago

Added one more commit to the branch to adjust the rest of ImzMLParser and the examples in the README to the third dimension always being present. I hope there is no code out there relying on two dimensions