Skip to content

Read NumPy vector fields and masks in logical row-major order - #6

Open
zsy1207 wants to merge 1 commit into
skyborn-org:mainfrom
zsy1207:fix/array-layout
Open

zsy1207 wants to merge 1 commit into
skyborn-org:mainfrom
zsy1207:fix/array-layout

Conversation

@zsy1207

@zsy1207 zsy1207 commented Dec 4, 2026

Copy link
Copy Markdown

Keep the borrowed fast path for C-contiguous input. For Fortran-contiguous and strided arrays, pass the kernels values in logical row-major order. Request C order when NumPy converts an input to float64 or bool.

Regression coverage checks native field samples, validity-mask sampling, conversion from other dtypes, and equality of the public curly-vector geometry for xarray Datasets stored in different dimension orders.

Tests

Local validation with the rebuilt extension: 451 Python tests passed, 4 skipped. All 26 Rust core tests passed.

Closes #5.

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.

Fortran-contiguous arrays change curly-vector directions and mask sampling

1 participant