Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ repos:
# hooks:
# - id: velin
# args: ["--write", "--compact"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
# Copied from setup.cfg
exclude: "properties|asv_bench"
additional_dependencies: [
# Type stubs
types-python-dateutil,
types-pkg_resources,
types-PyYAML,
types-pytz,
# Dependencies that are typed
numpy,
typing-extensions==3.10.0.0,
]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910
# hooks:
# - id: mypy
# # Copied from setup.cfg
# exclude: "properties|asv_bench"
# additional_dependencies: [
# # Type stubs
# types-python-dateutil,
# types-pkg_resources,
# types-PyYAML,
# types-pytz,
# # Dependencies that are typed
# numpy,
# typing-extensions==3.10.0.0,
# ]
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
# - repo: https://github.com/asottile/pyupgrade
# rev: v1.22.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This aims to create the data structure discussed in [xarray issue #4118](https:/


The approach used here is based on benbovy's [`DatasetNode` example](https://gist.github.com/benbovy/92e7c76220af1aaa4b3a0b65374e233a) - the basic idea is that each tree node wraps a up to a single `xarray.Dataset`. The differences are that this effort:
- [Uses a NodeMixin from anytree](https://github.com/TomNicholas/datatree/issues/7) for the tree structure,
- [Uses a NodeMixin from anytree](https://github.com/TomNicholas/datatree/issues/7) for the tree structure,
- Implements path-like and tag-like getting and setting,
- Has functions for mapping user-supplied functions over every node in the tree,
- Automatically dispatches *some* of `xarray.Dataset`'s API over every node in the tree (such as `.isel`),
Expand Down
4 changes: 3 additions & 1 deletion datatree/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from .datatree import DataTree, map_over_subtree, DataNode
# flake8: noqa
# Ignoring F401: imported but unused
from .datatree import DataNode, DataTree, map_over_subtree
from .io import open_datatree
2 changes: 1 addition & 1 deletion datatree/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.dev46+g415cbb7.d20210825"
__version__ = "0.1.dev46+g415cbb7.d20210825"
Loading