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

Method _unary_op

xarray/core/datatree.py:1941–1943  ·  view source on GitHub ↗
(self, f, *args, **kwargs)

Source from the content-addressed store, hash-verified

1939 return tuple(node.path for node in self.subtree)
1940
1941 def _unary_op(self, f, *args, **kwargs) -> DataTree:
1942 # TODO do we need to any additional work to avoid duplication etc.? (Similar to aggregations)
1943 return self.map_over_datasets(functools.partial(f, **kwargs), *args)
1944
1945 def _binary_op(self, other, f, reflexive=False, join=None) -> DataTree:
1946 from xarray.core.groupby import GroupBy

Callers

nothing calls this directly

Calls 1

map_over_datasetsMethod · 0.95

Tested by

no test coverage detected