MCPcopy Create free account
hub / github.com/pydata/xarray / test_rgb_errors_too_many_dims

Method test_rgb_errors_too_many_dims

xarray/tests/test_plot.py:2088–2091  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2086 arr.plot.imshow(x="x", y="y")
2087
2088 def test_rgb_errors_too_many_dims(self) -> None:
2089 arr = DataArray(easy_array((3, 3, 3, 3)), dims=["y", "x", "z", "band"])
2090 with pytest.raises(ValueError):
2091 arr.plot.imshow(rgb="band")
2092
2093 def test_rgb_errors_bad_dim_sizes(self) -> None:
2094 arr = DataArray(easy_array((5, 5, 5)), dims=["y", "x", "band"])

Callers

nothing calls this directly

Calls 3

DataArrayClass · 0.90
easy_arrayFunction · 0.85
imshowMethod · 0.80

Tested by

no test coverage detected