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

Function _maybe_create_default_indexes

xarray/backends/api.py:273–279  ·  view source on GitHub ↗
(ds)

Source from the content-addressed store, hash-verified

271
272
273def _maybe_create_default_indexes(ds):
274 to_index = {
275 name: coord.variable
276 for name, coord in ds.coords.items()
277 if coord.dims == (name,) and name not in ds.xindexes
278 }
279 return ds.assign_coords(Coordinates(to_index))
280
281
282def _dataset_from_backend_dataset(

Callers 1

Calls 3

CoordinatesClass · 0.90
itemsMethod · 0.80
assign_coordsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…