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

Method test_permute_dims

xarray/tests/test_namedarray.py:542–549  ·  view source on GitHub ↗
(
        self,
        target: NamedArray[Any, np.dtype[np.float32]],
        dims: _DimsLike,
        expected_sizes: dict[_Dim, _IntOrUnknown],
    )

Source from the content-addressed store, hash-verified

540 ],
541 )
542 def test_permute_dims(
543 self,
544 target: NamedArray[Any, np.dtype[np.float32]],
545 dims: _DimsLike,
546 expected_sizes: dict[_Dim, _IntOrUnknown],
547 ) -> None:
548 actual = target.permute_dims(*dims)
549 assert actual.sizes == expected_sizes
550
551 def test_permute_dims_errors(
552 self,

Callers

nothing calls this directly

Calls 1

permute_dimsMethod · 0.80

Tested by

no test coverage detected