-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error in average_over_dims
: NotImplementedError: Computing the mean of an array containing cftime.datetime objects is not yet implemented on dask arrays.
#185
Comments
Since the |
- Error was: NotImplementedError: Computing the mean of an array containing cftime.datetime objects is not yet implemented on dask arrays - Solution was to force loading of the Dataset, with `ds.load().mean()` - See: #185
We can undo this in future when the xarray/pandas versions are brought into line. |
I opened this issue here : pydata/xarray#5897. I believe the current bug has nothing to do with pandas or a version mismatch, rather then a PR introducing bugs on the xarray side. All in all, this only happens in the test suite because of the |
Thanks @aulemahal I've just read this through. We aren't using |
Description
Tests demonstrate an error. Computing with
ds.mean()
over an array containingcftime.datetime
objects is not yet implemented on dask arrays.Googling suggests that one solution is to force the data to be loaded, so it is no longer a delayed dask array, e.g.:
ds = ds.load()
What I Did
These tests demonstrate the error:
The text was updated successfully, but these errors were encountered: