-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
some private imports broken on main #6741
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
Comments
To add details, I suspect this commit as the culprit: It removes a direct import of the |
It was a semi-incidential change. The modules can either be imported at DataArray/set module level directly again, or we could add a breaking change note. |
On the plus side, with the current implementation we probably save a few ms import time xD. |
We do at least warn users that using anything from |
Another example is that The docstring also warns to use this class directly since it behaves as an incomplete base class. xarray/xarray/core/resample.py Lines 20 to 24 in 725258e
|
It was moved because it actually didn't work in the baseclass ;) |
What happened?
Seen over in cf_xarray
Using
xr.core.resample.Resample
worked prior to #6702.Now we need to use
from xarray.core.resample import Resample
I don't know if this is something that needs to be fixed or only worked coincidentally earlier. But I thought it was worth discussing prior to release.
Thanks to @aulemahal for spotting
The text was updated successfully, but these errors were encountered: