question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reimplement `xr.quantile` once `xarray` v0.15.1 is released and equally fast

See original GitHub issue

Per discussions in https://github.com/bradyrx/climpred/pull/285. @aaronspring switched over to a map_blocks wrapper of xr.quantile since pre v0.15 xarray versions do not allow dask objects for quantile.

xarray v0.15 will have dask-compatible xr.quantile (http://xarray.pydata.org/en/latest/whats-new.html) so this should be switched out once that is released.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
dcheriancommented, Mar 6, 2020

Ah yes the nanfunctions are slow. We should add a skipna kwarg just as for our other reductions. Can you open an xarray issue please?

0reactions
aaronspringcommented, Mar 8, 2020

implemented in xarray. wait for 0.15.1

https://github.com/pydata/xarray/pull/3844

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New - Xarray
Explicitly opening a file multiple times (e.g., after modifying it on disk) now reopens the file from scratch for h5netcdf and scipy netCDF...
Read more >
Reading and writing files - Xarray
When writing multiple groups in one file, pass mode='a' to to_netcdf to ensure that each call does not delete the file. Data is...
Read more >
xarray.DataArray.quantile
Compute the qth quantile of the data along the specified dimension. Returns the qth quantiles(s) of the array elements. Parameters.
Read more >
API reference - Xarray
Explicitly broadcast any number of DataArray or Dataset objects against one another. concat (objs, dim[, data_vars, coords, ...]) Concatenate xarray objects ...
Read more >
What's New — xarray 0.11.3 documentation
This is the last major release that will support Python 2.7. ... or Dataset is now much faster if the MultiIndex has not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found