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

Replace .ds with immutable DatasetView #99

Merged
merged 59 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
59 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
4dd3675
remove commented pseudocode
TomNicholas May 28, 2022
7c2c4f8
explanation of basic properties
TomNicholas May 31, 2022
66b7adf
add data structures page to index
TomNicholas May 31, 2022
b61e940
revert adding documentation in favour of that going in a different PR
TomNicholas May 31, 2022
0e9b384
correct deepcopy tests
TomNicholas Jun 1, 2022
d56f89b
use .data_vars in copy tests
TomNicholas Jun 1, 2022
07f6d4d
add test for arithmetic with .ds
TomNicholas Jun 2, 2022
322f1e9
remove reference to wrapping node in DatasetView
TomNicholas Jun 2, 2022
15b89fc
clarify type through renaming variables
TomNicholas Jun 2, 2022
44254d7
remove test for out-of-node access
TomNicholas Jun 2, 2022
cf5051c
Merge branch 'main' into initial_integration_refactor
TomNicholas Jun 2, 2022
9c3331a
Merge branch 'main' into initial_integration_refactor
TomNicholas Jun 3, 2022
2b0226d
make imports depend on most recent version of xarray
TomNicholas Jun 7, 2022
0be76df
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 7, 2022
e30bba0
remove try except for internal import
TomNicholas Jun 9, 2022
4505514
depend on latest pre-release of xarray
TomNicholas Jun 9, 2022
bffeed8
Merge branch 'initial_integration_refactor' of https://github.com/xar…
TomNicholas Jun 9, 2022
cd575d2
correct name of version
TomNicholas Jun 9, 2022
47f8319
xarray pre-release under pip in ci envs
TomNicholas Jun 9, 2022
c2c6aa6
correct methods
TomNicholas Jun 9, 2022
46de4d3
Merge branch 'main' into initial_integration_refactor
TomNicholas Jun 15, 2022
69bf9ff
whatsnews
TomNicholas Jun 15, 2022
993905d
Merge branch 'main' into initial_integration_refactor
TomNicholas Jun 16, 2022
3bf6d59
Merge branch 'initial_integration_refactor' into datasetview2
TomNicholas Jun 16, 2022
c1cc571
fix fixture in test
TomNicholas Jun 16, 2022
19cc897
whatsnew
TomNicholas Jun 16, 2022
c0a5ae7
improve docstrings
TomNicholas Jun 16, 2022
70fb9ed
Merge branch 'initial_integration_refactor' into datasetview2
TomNicholas Jun 16, 2022
68a9faf
Merge branch 'main' into datasetview2
TomNicholas Jun 16, 2022
6a7244b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 16, 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