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

Function _fast_dataset

xarray/computation/apply_ufunc.py:470–483  ·  view source on GitHub ↗

Create a dataset as quickly as possible. Beware: the `variables` dict is modified INPLACE.

(
    variables: dict[Hashable, Variable],
    coord_variables: Mapping[Hashable, Variable],
    indexes: dict[Hashable, Index],
)

Source from the content-addressed store, hash-verified

468
469
470def _fast_dataset(
471 variables: dict[Hashable, Variable],
472 coord_variables: Mapping[Hashable, Variable],
473 indexes: dict[Hashable, Index],
474) -> Dataset:
475 """Create a dataset as quickly as possible.
476
477 Beware: the `variables` dict is modified INPLACE.
478 """
479 from xarray.core.dataset import Dataset
480
481 variables.update(coord_variables)
482 coord_names = set(coord_variables)
483 return Dataset._construct_direct(variables, coord_names, indexes=indexes)
484
485
486def apply_dataset_vfunc(

Callers 1

apply_dataset_vfuncFunction · 0.85

Calls 2

updateMethod · 0.45
_construct_directMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…