-
-
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.
Migrate datatree.py module into xarray.core. (#8789)
* Migrate datatree.py module into xarray.core. * Add correct PR reference to whats-new.rst. * Revert to using Union in datatree.py. * Catch remaining unfixed import path. * Fix easier mypy annotations in datatree.py and test_datatree.py. * Straggling mypy change in datatree.py. * datatree.py comment clean-up. * More mypy corrections in datatree.py and test_datatree.py. * Removes unnecessary dict wrapper. * DAS-2062: renames as_array -> to_dataarray * DAS-2062: Updates doc string for Datatree.to_zarr Accurately reflects the default value now. * DAS-2062: reverts what-new.rst for "breaking changes that aren't breaking yet but will be, but only relevant for previous users of another package" * DAS-2062: clarify wording in comment. * Change Datatree.to_dataarray to call correctly We updated the name but not the function. * Clarify DataTree's names are still strings now. DAS-2062 * DAS-2062: Cast k explicitly to str for typing. So this is where we are moving forward with the assumption that DataTree nodes are alway named with a string. In this section of `update` even though we know the key is a str, mypy refuses. I chose explicit recast over mypy ignores, tell me why that's wrong? * Ignore mypy errors for DataTree.ds assignment. * Fix DataTree.update type hint. * Final mypy issue - ignore DataTree.get override. * Update contributors in whats-new.rst * Fix GitHub handle. --------- Co-authored-by: Matt Savoie <[email protected]> Co-authored-by: Matt Savoie <[email protected]> Co-authored-by: Deepak Cherian <[email protected]>
- Loading branch information
1 parent
55173e8
commit 473b87f
Showing
23 changed files
with
257 additions
and
238 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
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.