MCPcopy Index your code
hub / github.com/pydata/xarray / _copy_node

Method _copy_node

xarray/core/treenode.py:286–291  ·  view source on GitHub ↗

Copy just one node of a tree

(
        self, inherit: bool, deep: bool = False, memo: dict[int, Any] | None = None
    )

Source from the content-addressed store, hash-verified

284 return new_tree
285
286 def _copy_node(
287 self, inherit: bool, deep: bool = False, memo: dict[int, Any] | None = None
288 ) -> Self:
289 """Copy just one node of a tree"""
290 new_empty_node = type(self)()
291 return new_empty_node
292
293 def __copy__(self) -> Self:
294 return self._copy_subtree(inherit=True, deep=False)

Callers 2

_copy_subtreeMethod · 0.95
_copy_nodeMethod · 0.45

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected