Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 12, 2016

Conversation

andy-d-palmer
Copy link
Member

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
Copy link
Contributor

+1

@lomereiter lomereiter merged commit 7a9307f into master Jul 12, 2016
@DarthPumpkin
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants