Repository navigation
Fix Affine matrix multiplication warnings - #939
be-student wants to merge 13 commits into
Conversation
|
With this change, will need to pin rasterio>=1.5.1 and affine>=3. |
Keep all nine coefficients and the existing NumPy comparison precision when validating Affine 3 transforms. Document the comparison pattern for future tests.
|
I suggest focusing only on affine matrix multiplication. If more than that is added, it could cause the PR merge to be delayed or blocked. |
|
Thanks for the guidance. I narrowed the branch back to the affine matrix multiplication change and the requested At head |
|
AppVeyor build I am keeping the branch affine-only as requested and am not reintroducing shutdown hooks or a CI wrapper that accepts the native crash. The complete hosted log is available in AppVeyor build 54750988. |
|
The GitHub Actions Windows/Python 3.14 job shows the same post-test native failure as AppVeyor. Its log reports 554 passed, 4 skipped, 2 xfailed, and 5 xpassed, then The affine tests themselves pass, and I am keeping the branch scoped to affine matrix multiplication as requested. I cannot establish from this PR run alone whether the interpreter-shutdown crash also occurs on current |
|
Thanks for the scope correction. I removed the manual coordinate arithmetic in |
|
The new scoped head |
|
Thank you for the reviews and guidance. I am closing this PR to wind down my pending contribution queue. The patch and test results remain available here; please feel free to use or adapt them whenever useful. |
|
Thanks for your contribution. Trimming contribution queues is a new concept to me. It is important to be aware that maintainers have many responsibilities and priorities outside of the projects that you contribute to. Due to this, the timeline for merging PRs may be a while. This was added to the milestone for the project and was planned to be merged when maintainers have time. |
Summary
Fixes Affine 3's
PendingDeprecationWarningfor rioxarray's own matrix multiplications by using@for pixel-center, coordinate-array, and recalculated transforms. Following review, the coordinate-conversion function keeps its original structure; the only runtime operation changes there are*to@. A typing-onlycast()accounts for Affine's overloads not covering NumPy coordinate arrays.The maintainer-requested dependency floors are explicit:
rasterio>=1.5.1andaffine>=3. Transform comparisons in the affected integration tests compare coefficient tuples, and the focused unit test exercises pixel-center coordinates.Validation
cd7a8e44c75dbe8bf73633e1d64f21e06f490469, mypy reports no issues in 19 source files, pylint reports 10.00/10, the focused spatial tests pass (2 passed), andgit diff --checkpasses.-1073741819aftersys.excepthookerrors during interpreter shutdown. No unrelated shutdown or CI-masking change was added.sys.excepthookerrors and segmentation fault; fail-fast cancelled the remaining macOS and Windows jobs.sys.excepthookerrors and exited with Windows access violation-1073741819. The job remains failed; a successful test summary is not a successful CI run. Its log is now accessible. Whether this shutdown crash also occurs on current upstream has not been established, so no unrelated shutdown or CI-masking change is included.action_required). The reported green/failing job results above are from the earlier approved runs, not newly completed runs.Issue linkage
Closes #937.
AI assistance disclosure
OpenAI Codex assisted with implementation, test execution, baseline comparison, and this description. No manual-testing or human-review claim is made.
rioxarray.open_rasteriostarting to emit warning from affine #937docs/history.rst