MCPcopy Create free account
hub / github.com/dask/dask / test_polyfit_reshaping

Function test_polyfit_reshaping

dask/array/tests/test_xarray.py:59–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def test_polyfit_reshaping():
60 # Regression test for https://github.com/pydata/xarray/issues/4554
61 arr = xr.DataArray(da.ones((10, 20, 30), chunks=(1, 5, 30)), dims=["z", "y", "x"])
62 result = arr.polyfit("x", 1)
63 assert result.polyfit_coefficients.chunks == ((2,), (1,) * 10, (5,) * 4)
64
65
66def test_positional_indexer_multiple_variables():

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected