-
Notifications
You must be signed in to change notification settings - Fork 16
Preserve Xarray legacy compat and join behaviors
#800
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
Conversation
tomvothecoder
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.
Hey @jasonb5 can you do a quick review of this PR? I highlighted the changes in my self-review below. The existing test build passes.
I want to get this in before the next release (next two weeks). Thanks.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #800 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 1782 1784 +2
=========================================
+ Hits 1782 1784 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jasonb5
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.
LGTM
Just one thing, if None is False do we need to allow None for use_new_combine_kwargs_defaults?
- Format docstrings for readability - Update test to remove `use_new_combine_kwarg_defaults` since `compat` and `join` are explicitly set
55506ed to
53ea7a6
Compare
|
Thanks for the review @jasonb5.
I actually removed I realized that it is redundant to set |
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.
Pull Request Overview
Preserve legacy Xarray merge/alignment behavior in xcdat.open_mfdataset by default, aligning with pre-Xarray-0.23 defaults.
- Add compat and join keyword-only parameters with legacy defaults ("no_conflicts" and "outer") and forward them to xr.open_mfdataset
- Update documentation to explain the preserved defaults and options
- Adjust tests’ expectations to reflect legacy compat/join defaults
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| xcdat/dataset.py | Adds compat and join parameters and forwards them via kwargs to xr.open_mfdataset; updates docstrings. |
| tests/test_dataset.py | Updates expected merges in tests to use compat="no_conflicts" and join="outer". |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Description
compatandjoinbehaviors and addressFutureWarning#798Checklist
If applicable: