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

Function _inherited_dataset

xarray/core/datatree.py:147–156  ·  view source on GitHub ↗
(ds: Dataset, parent: Dataset)

Source from the content-addressed store, hash-verified

145
146
147def _inherited_dataset(ds: Dataset, parent: Dataset) -> Dataset:
148 return Dataset._construct_direct(
149 variables=parent._variables | ds._variables,
150 coord_names=parent._coord_names | ds._coord_names,
151 dims=parent._dims | ds._dims,
152 attrs=ds._attrs,
153 indexes=parent._indexes | ds._indexes,
154 encoding=ds._encoding,
155 close=ds._close,
156 )
157
158
159def _without_header(text: str) -> str:

Callers 1

check_alignmentFunction · 0.85

Calls 1

_construct_directMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…