-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix indexing bugs in CoordinateTransformIndex
#10980
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
base: main
Are you sure you want to change the base?
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The return statement was incorrectly indented inside the for loop, causing only the first coordinate to be assigned to the DataArray. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
benbovy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dcherian!
I haven't reviewed the tests (I'm not very familiar with hypothesis) but the fix looks good to me!
* main: Document limitations of cftime arithmetic (pydata#10653) Remove RTD htmlzip output format (pydata#10977) Support decoding unsigned integers to timedelta (pydata#10972) Use `._data` in `Variable._replace` (pydata#10969) small changes to the pixi env definitions (pydata#10976) Add GitHub Codespaces config for Pixi (pydata#10929) Fix workflow name to embed `matrix.pytest-addopts` (pydata#10970)
keewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a logic error in your tests, so it might be good to resolve that before merging
| microseconds_offset = draw(st.integers(0, timespan_microseconds)) | ||
|
|
||
| return min_value + datetime.timedelta(microseconds=microseconds_offset) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are neat, I remember looking for strategies like this before
* main: Switch from `sphinx-llms-txt` => `sphinx-llm` (pydata#11003) Backend fastpath (pydata#10937) Change behavior of `keep_attrs` in `xr.where` when x is a scalar (pydata#10997) make error message more clear (pydata#10994) Address pandas-related upstream errors in pydata#10973 (pydata#10988) new release section (pydata#10985) set the release date (pydata#10984) release v2025.12.0 (pydata#10981) Add sphinx-llms-txt (pydata#10978)
Fixes some severe bugs noticed downstream in rasterix
Disclaimer: had lots of help from Claude in writing the strategies but I have reviewed them closely