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

Function _as_variables_or_variable

xarray/computation/apply_ufunc.py:387–394  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

385
386
387def _as_variables_or_variable(arg) -> Variable | tuple[Variable]:
388 try:
389 return arg.variables
390 except AttributeError:
391 try:
392 return arg.variable
393 except AttributeError:
394 return arg
395
396
397def _unpack_dict_tuples(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…