Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Out of node access to variables in .ds #102

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
22004e4
sketching out changes needed to integrate variables into DataTree
TomNicholas Sep 22, 2021
8f0518c
Merge branch 'main' into initial_integration_refactor
TomNicholas Apr 29, 2022
3a4f874
fixed some other basic conflicts
TomNicholas Apr 29, 2022
8c6a68a
fix mypy errors
TomNicholas Apr 29, 2022
b503b06
can create basic datatree node objects again
TomNicholas Apr 29, 2022
1efd7f2
child-variable name collisions dectected correctly
TomNicholas Apr 29, 2022
438d73a
in-progres
TomNicholas May 4, 2022
904eae3
merge in main
TomNicholas May 20, 2022
2ca1c1a
add _replace method
TomNicholas May 21, 2022
547d1ac
updated tests to assert identical instead of check .ds is expected_ds
TomNicholas May 21, 2022
6f78fcd
refactor .ds setter to use _replace
TomNicholas May 21, 2022
715ce49
refactor init to use _replace
TomNicholas May 21, 2022
edd2f67
refactor test tree to avoid init
TomNicholas May 21, 2022
b2c51aa
attempt at copy methods
TomNicholas May 22, 2022
a20e85f
rewrote implementation of .copy method
TomNicholas May 23, 2022
8387a1c
xfailing test for deepcopying
TomNicholas May 23, 2022
52ef23b
pseudocode implementation of DatasetView
TomNicholas May 24, 2022
4a5317e
Revert "pseudocode implementation of DatasetView"
TomNicholas May 24, 2022
09a22e4
pseudocode implementation of DatasetView
TomNicholas May 24, 2022
b60a4af
removed duplicated implementation of copy
TomNicholas May 25, 2022
3077bf7
reorganise API docs
TomNicholas May 25, 2022
5368f8b
expose data_vars, coords etc. properties
TomNicholas May 26, 2022
cae0a4e
try except with calculate_dimensions private import
TomNicholas May 26, 2022
72af61c
add keys/values/items methods
TomNicholas May 27, 2022
ec11072
don't use has_data when .variables would do
TomNicholas May 27, 2022
a2381e1
Merge branch 'initial_integration_refactor' into datasetview2
TomNicholas May 27, 2022
7f9a9ea
change asserts to not fail just because of differing types
TomNicholas May 27, 2022
d22c2f8
full sketch of how DatasetView could work
TomNicholas May 27, 2022
c715387
added tests for DatasetView
TomNicholas May 27, 2022
779f254
tests for getitem
TomNicholas May 28, 2022
8359992
attempted implementation of out-of-node getitem, but raises recursion…
TomNicholas May 28, 2022
dbc31d2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 28, 2022
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
2 changes: 1 addition & 1 deletion datatree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# import public API
from .datatree import DataTree
from .io import open_datatree
from .mapping import map_over_subtree
from .mapping import TreeIsomorphismError, map_over_subtree

try:
__version__ = get_distribution(__name__).version
Expand Down
Loading