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

Method __init__

xarray/namedarray/core.py:254–262  ·  view source on GitHub ↗
(
        self,
        dims: _DimsLike,
        data: duckarray[Any, _DType_co],
        attrs: _AttrsLike = None,
    )

Source from the content-addressed store, hash-verified

252 _attrs: dict[Any, Any] | None
253
254 def __init__(
255 self,
256 dims: _DimsLike,
257 data: duckarray[Any, _DType_co],
258 attrs: _AttrsLike = None,
259 ):
260 self._data = data
261 self._dims = self._parse_dimensions(dims)
262 self._attrs = dict(attrs) if attrs else None
263
264 def __init_subclass__(cls, **kwargs: Any) -> None:
265 if NamedArray in cls.__bases__ and (cls._new == NamedArray._new):

Callers

nothing calls this directly

Calls 1

_parse_dimensionsMethod · 0.95

Tested by

no test coverage detected