-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
add open_datatree to xarray #8697
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
0266b63
Merge remote-tracking branch 'prepared-datatree/main' into mhs/import…
flamingbear 3899b06
DAS-2060: Skips datatree_ CI
flamingbear d5b80f9
DAS-2070: Migrate open_datatree into xarray.
flamingbear 0c62960
DAS-2060: replace relative import of datatree to library
flamingbear a523d50
DAS-2060: revert the exporting of NodePath from datatree
flamingbear 1e5e433
Merge branch 'main' into mhs/DAS-2060/open_datatree
flamingbear e687e4a
Don't expose open_datatree at top level
flamingbear 4e05d5c
Point datatree imports to xarray.datatree_.datatree
flamingbear 77405d9
Updates function signatures for mypy.
flamingbear 81b425f
Move io tests, remove undefined reference to documentation.
flamingbear 3c5bcda
Pass bare-minimum tests.
flamingbear 9f89256
Update pyproject.toml to exclude imported datatree_ modules.
flamingbear a4bad61
Adding back type ignores
flamingbear e4f0374
Refactor open_datatree back together.
flamingbear 3b1224c
Removes TODO comment
flamingbear e447900
Merge branch 'main' into mhs/open_datatree
flamingbear 352222d
Merge branch 'main' into mhs/open_datatree
flamingbear 9745864
Merge branch 'main' into mhs/open_datatree
flamingbear 20d8691
typo fix
flamingbear 221bc8c
typo 2
flamingbear b74764e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6498acc
Merge branch 'main' into mhs/open_datatree
flamingbear 4280d30
Call raised exception
flamingbear 8c54465
Add unpacking notation to kwargs
flamingbear afba7ba
Use final location for DataTree doc strings
flamingbear aab1744
fix comment from open_dataset to open_datatree
flamingbear 5b48973
Revert "fix comment from open_dataset to open_datatree"
flamingbear c6bb18a
Change sphynx link from meth to func
flamingbear 4d306c0
Merge branch 'main' into mhs/open_datatree
flamingbear d386ed3
Update whats-new.rst
flamingbear e291587
Fix what-new.rst formatting.
flamingbear File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,15 @@ | ||
| # import public API | ||
| from .datatree import DataTree | ||
| from .extensions import register_datatree_accessor | ||
| from .io import open_datatree | ||
| from .mapping import TreeIsomorphismError, map_over_subtree | ||
| from .treenode import InvalidTreeError, NotFoundInTreeError | ||
|
|
||
| try: | ||
| # NOTE: the `_version.py` file must not be present in the git repository | ||
| # as it is generated by setuptools at install time | ||
| from ._version import __version__ | ||
| except ImportError: # pragma: no cover | ||
| # Local copy or not installed with setuptools | ||
| __version__ = "999" | ||
|
|
||
| __all__ = ( | ||
| "DataTree", | ||
| "open_datatree", | ||
| "TreeIsomorphismError", | ||
| "InvalidTreeError", | ||
| "NotFoundInTreeError", | ||
| "map_over_subtree", | ||
| "register_datatree_accessor", | ||
| "__version__", | ||
| ) |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.