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

Function _check_dims

xarray/core/utils.py:1145–1151  ·  view source on GitHub ↗
(dim: AbstractSet[Hashable], all_dims: AbstractSet[Hashable])

Source from the content-addressed store, hash-verified

1143
1144
1145def _check_dims(dim: AbstractSet[Hashable], all_dims: AbstractSet[Hashable]) -> None:
1146 wrong_dims = (dim - all_dims) - {...}
1147 if wrong_dims:
1148 wrong_dims_str = ", ".join(f"'{d}'" for d in wrong_dims)
1149 raise ValueError(
1150 f"Dimension(s) {wrong_dims_str} do not exist. Expected one or more of {all_dims}"
1151 )
1152
1153
1154_Accessor = TypeVar("_Accessor")

Callers 3

parse_dims_as_tupleFunction · 0.85
parse_dims_as_setFunction · 0.85
parse_ordered_dimsFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…