MCPcopy
hub / github.com/pydata/xarray / dataarray_to_dataset

Function dataarray_to_dataset

xarray/core/parallel.py:80–88  ·  view source on GitHub ↗
(obj: DataArray)

Source from the content-addressed store, hash-verified

78
79
80def dataarray_to_dataset(obj: DataArray) -> Dataset:
81 # only using _to_temp_dataset would break
82 # func = lambda x: x.to_dataset()
83 # since that relies on preserving name.
84 if obj.name is None:
85 dataset = obj._to_temp_dataset()
86 else:
87 dataset = obj.to_dataset()
88 return dataset
89
90
91def make_meta(obj):

Callers 2

make_metaFunction · 0.85
map_blocksFunction · 0.85

Calls 2

_to_temp_datasetMethod · 0.80
to_datasetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…