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

Function _unpack_dict_tuples

xarray/computation/apply_ufunc.py:397–404  ·  view source on GitHub ↗
(
    result_vars: Mapping[Any, tuple[Variable, ...]], num_outputs: int
)

Source from the content-addressed store, hash-verified

395
396
397def _unpack_dict_tuples(
398 result_vars: Mapping[Any, tuple[Variable, ...]], num_outputs: int
399) -> tuple[dict[Hashable, Variable], ...]:
400 out: tuple[dict[Hashable, Variable], ...] = tuple({} for _ in range(num_outputs))
401 for name, values in result_vars.items():
402 for value, results_dict in zip(values, out, strict=True):
403 results_dict[name] = value
404 return out
405
406
407def _check_core_dims(signature, variable_args, name):

Callers 1

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…