-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reimplement xr.quantile
once xarray
v0.15.1 is released and equally fast
#316
Comments
I’ll also have to check whether the new function is faster... |
I dont know why but my new function is magnitudes faster.
|
Maybe this should be raised over at |
They have a few discussions about quantile in xr. But they are not convinced from the dask implementation it seems |
xr.quantile
once xarray
v0.15 is releasedxr.quantile
once xarray
v0.15 is released and equally fast
If you can come up with a reproducible example, please open an xarray issue. The xarray implementation is basically doing map_blocks with np.nanquantile using apply_ufunc (really blockwise), so the only difference should be the error checking code. |
it seems
unsure whether this is still a problem: pydata/xarray#1524 would it make sense to add a keyword to just checking for nans seems fast:
|
Ah yes the nanfunctions are slow. We should add a |
implemented in xarray. wait for 0.15.1 |
xr.quantile
once xarray
v0.15 is released and equally fastxr.quantile
once xarray
v0.15.1 is released and equally fast
Per discussions in https://github.com/bradyrx/climpred/pull/285. @aaronspring switched over to a
map_blocks
wrapper ofxr.quantile
since pre v0.15xarray
versions do not allow dask objects for quantile.xarray
v0.15 will have dask-compatiblexr.quantile
(http://xarray.pydata.org/en/latest/whats-new.html) so this should be switched out once that is released.The text was updated successfully, but these errors were encountered: