fix: _as_index() calls to_index() for DataArrays - #897
Conversation
Merging this PR will regress 2 benchmarks
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
@codspeedbot fix this regression |
|
hey, @FBumann @FabianHofmann , tagging you guys since you were the last to touch the related code; could you please briefly check this? Details are in the linked issue, pls let me know whether you find this resolution appropriate. If so, i'd like to ask for brief assistance with fixing the checks, as this is my first contribution here and i'm not familiar with it. Both the failures are weird to me, and likely transient (but i can't re-run the pipelines to confirm). I'd think the memory regression is just noise (codspeed also reports 'Different runtime environments detected', which might be the reason). The test failure on 3.11. is unrelated to my changes - Copilot suggested that it's a problem with a flaky version of coptpy. Similar error happened on master today. Pleaes let me know what you think. Thanks a lot! |
|
Hi @peterhron, About Codspeed: Yes, Codspeed is quite flaky atm. This won't be a regression. About the tests: Yes, this isn't from your change. We are investigating an issue with COPT at the moment #899 |
There was a problem hiding this comment.
Great work! Please add a release note entry, then we are good to go @peterhron.
FBumann
left a comment
There was a problem hiding this comment.
Thanks for your contribution @peterhron
thanks for the quick response. I just had to rebase, otherwise the PR should be good to go! |
Closes #898 (if applicable).
Changes proposed in this Pull Request
helper in alignment.py uses
DataArray.to_index()to retrieve the actual pandas index object instead of re-building it viapd.Index. This fixes regression where timezone-aware indexes cannot be used to build a model.Unit tests are added to validate that models can be built with timezone-aware coords.
Checklist
AGENTS.md).doc.doc/release_notes.rstof the upcoming release is included.