-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
map_blocks: Allow passing dask-backed objects in args (#3818)
* MVP for dask collections in args * Add tests. * Use list comprehension * map_blocks: preserve attrs of dimension coordinates in input Switch to use IndexVariables instead of Indexes so that attrs are preserved. * Check that chunk sizes are compatible. * Align all xarray objects * Add some type hints. * fix rebase * move _wrapper out * Fixes * avoid index dataarrays for simplicity. need a solution to preserve index attrs * Propagate attributes for index variables. * Propagate encoding for index variables. * Fix bug with reductions when template is provided. indexes should just have indexes for output variable. When template was provided, I was initializing to indexes to contain all input indexes. It should just have the indexes from template. Otherwise indexes for any indexed dimensions removed by func will still be propagated. * more minimal fix. * minimize diff * Update docs. * Address joe comments. * docstring updates. * minor docstring change * minor. * remove useless check_shapes variable. * fix docstring
- Loading branch information
Showing
5 changed files
with
324 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.