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

Method setUp

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

Source from the content-addressed store, hash-verified

1172class TestDiscreteColorMap:
1173 @pytest.fixture(autouse=True)
1174 def setUp(self) -> Generator[None, None, None]:
1175 x = np.arange(0, 10, 2)
1176 y = np.arange(9, -7, -3)
1177 xy = np.dstack(np.meshgrid(x, y))
1178 distance = np.linalg.norm(xy, axis=2)
1179 self.darray = DataArray(distance, list(zip(("y", "x"), (y, x), strict=True)))
1180 self.data_min = distance.min()
1181 self.data_max = distance.max()
1182 yield
1183 # Remove all matplotlib figures
1184 plt.close("all")
1185
1186 @pytest.mark.slow
1187 def test_recover_from_seaborn_jet_exception(self) -> None:

Callers

nothing calls this directly

Calls 5

DataArrayClass · 0.90
arangeMethod · 0.80
minMethod · 0.45
maxMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected