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

Inconsistency in axis order #2

Open
Czaki opened this issue Feb 3, 2022 · 2 comments
Open

Inconsistency in axis order #2

Czaki opened this issue Feb 3, 2022 · 2 comments

Comments

@Czaki
Copy link

Czaki commented Feb 3, 2022

When updating my code after the breaking change in 2022.2.2 I found that the axis order reported by OifFIle.axis (In my case ZCYX) is different than returned by asarray (In my case CZYX)

This behavior is counterintuitive to me.

The sample file is attached here:
Image0003_01.zip

@cgohlke
Copy link
Owner

cgohlke commented Feb 3, 2022

AFAICT this is not a regression and there are no significant changes. OifFIle.axes is read from the mainfile metadata while asarray returns the order in which the dimensions are stored in the file sequence.

@Czaki
Copy link
Author

Czaki commented Feb 3, 2022

I see that this is not regression. I earlier use OifFile.tiffs.axes which was removed. Now I found that I need to use OifFile.series[0].axis.

But I expect to have a method that will return axis in order of metadata.

You may treat this issue as a feature request (or maybe a documentation request).

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

No branches or pull requests

2 participants