MCPcopy Create free account
hub / github.com/pydata/xarray / _pre_detach

Method _pre_detach

xarray/core/treenode.py:504–506  ·  view source on GitHub ↗

Method call before detaching from `parent`.

(self, parent: Self)

Source from the content-addressed store, hash-verified

502 return len([node for node in self.root.subtree if node.level == self.level])
503
504 def _pre_detach(self, parent: Self) -> None:
505 """Method call before detaching from `parent`."""
506 pass
507
508 def _post_detach(self, parent: Self) -> None:
509 """Method call after detaching from `parent`."""

Callers 1

_detachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected