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

Function result_name

xarray/core/utils.py:1391–1400  ·  view source on GitHub ↗
(objects: Iterable[Any])

Source from the content-addressed store, hash-verified

1389
1390
1391def result_name(objects: Iterable[Any]) -> Any:
1392 # use the same naming heuristics as pandas:
1393 # https://github.com/blaze/blaze/issues/458#issuecomment-51936356
1394 names = {getattr(obj, "name", _DEFAULT_NAME) for obj in objects}
1395 names.discard(_DEFAULT_NAME)
1396 if len(names) == 1:
1397 (name,) = names
1398 else:
1399 name = None
1400 return name
1401
1402
1403def _get_func_args(func, param_names):

Callers 4

map_over_datasetsFunction · 0.90
_binary_opMethod · 0.90
apply_dataarray_vfuncFunction · 0.90
test_result_nameFunction · 0.90

Calls 1

discardMethod · 0.80

Tested by 1

test_result_nameFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…