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

Function _get_broadcast_dims_map_common_coords

xarray/structure/alignment.py:1123–1133  ·  view source on GitHub ↗
(args, exclude)

Source from the content-addressed store, hash-verified

1121
1122
1123def _get_broadcast_dims_map_common_coords(args, exclude):
1124 common_coords = {}
1125 dims_map = {}
1126 for arg in args:
1127 for dim in arg.dims:
1128 if dim not in common_coords and dim not in exclude:
1129 dims_map[dim] = arg.sizes[dim]
1130 if dim in arg._indexes:
1131 common_coords.update(arg.xindexes.get_all_coords(dim))
1132
1133 return dims_map, common_coords
1134
1135
1136def _broadcast_helper(

Callers 3

broadcast_likeMethod · 0.90
broadcast_likeMethod · 0.90
broadcastFunction · 0.85

Calls 2

get_all_coordsMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…