pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.63k stars 1.09k forks source link

Optimize polyfit #9766

Closed dcherian closed 1 week ago

dcherian commented 1 week ago

Closes #5629

  1. Use Variable instead of DataArray
  2. Use reshape_blockwise when possible following https://github.com/pydata/xarray/issues/5629#issuecomment-960133879

cc @phofl

dcherian commented 1 week ago

@aulemahal can you check that xclim's test suite passes with this please

phofl commented 1 week ago

Nice!

aulemahal commented 1 week ago

@dcherian I can confirm the test suite of xclim passes successfully when tested against this branch!