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

No swap numpy dims #774

Merged
merged 2 commits into from
Feb 5, 2025
Merged

No swap numpy dims #774

merged 2 commits into from
Feb 5, 2025

Conversation

cookpa
Copy link
Member

@cookpa cookpa commented Feb 4, 2025

Fixes #773

I've been staring at this a while and I can't see a case where the "fortran contiguous" data would correctly read into an ITK image. It might have the right shape but it seems that the voxels would be wrong.

In any case, as used, the code always copies the data into a C-contiguous array (the default).

@coveralls
Copy link

Coverage Status

coverage: 79.518%. remained the same
when pulling f22bf97 on no_swap_numpy_dims
into 6d7bd92 on master.

@cookpa cookpa merged commit c816d99 into master Feb 5, 2025
3 checks passed
@cookpa cookpa deleted the no_swap_numpy_dims branch February 5, 2025 14:19
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.

make_image returns wrong dimension when input is a 1*3 vector
2 participants