Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pydata/xarray
/ orphan
Method
orphan
xarray/core/treenode.py:159–161 ·
view source on GitHub ↗
Detach this node from its parent.
(self)
Source
from the content-addressed store, hash-verified
157
self._parent = None
158
159
def
orphan(self) -> None:
160
""
"Detach this node from its parent."
""
161
self._set_parent(new_parent=None)
162
163
@property
164
def
children(self) -> Mapping[str, Self]:
Callers
5
children
Method · 0.80
__delitem__
Method · 0.80
test_open_datatree_specific_group
Method · 0.80
test_open_datatree_specific_group
Method · 0.80
test_disown_child
Method · 0.80
Calls
1
_set_parent
Method · 0.95
Tested by
3
test_open_datatree_specific_group
Method · 0.64
test_open_datatree_specific_group
Method · 0.64
test_disown_child
Method · 0.64