()
| 57 | |
| 58 | |
| 59 | def 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 | |
| 66 | def test_positional_indexer_multiple_variables(): |