-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for spatial averaging parallelism via Dask #132
Conversation
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.
Looks good overall, just a few suggestions. Thanks!
Note that this needs more work: #115 (comment) |
- Add `with xr.set_options(keep_attrs=True)` to `_swap_lon_axes()` to fix tests - Add tests for `_swap_lon_axes()` and chunking - Update name of tests
Codecov Report
@@ Coverage Diff @@
## main #132 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 336 341 +5
=========================================
+ Hits 336 341 +5
Continue to review full report at Codecov.
|
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.
@tomvothecoder - This looks good to me. It is passing tests and giving the correct output now.
Description
This PR is intended to fix #115. It simply updates the
dataarray.values
attribute directly (when applicable) to maintain compatibility with chunked dataarray data (for spatial averaging routines).NotImplementedError: xarray can't set arrays with multiple array indices to dask yet.
#115Checklist
If applicable: