-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
DataArray.clip() no longer supports the out argument #5278
Comments
FYI I'm out on paternity leave for a few weeks. Generally IIRC What is the case for having |
It lets you reuse memory you already have. In particular for a simple operation like clip, you can do it in-place: |
FWIW. This showed up in xskillscore as we were doing |
Thanks for the example @raybellwaves Supporting FYI, we don't generally have
|
We currently do have some support for |
Thanks @keewis , that makes sense. And ensuring I return to @seth-p 's original issue — I would be up for adding Otherwise I would vote weakly against |
In any case, I think we should try to replace Also, I agree on being consistent regarding the |
I'm not familiar at all with the various numpy interfaces, so I can't offer any input implementation-wise. But as a user, being able to do operations in place (via |
xarray allows using dask arrays for data that don’t fit into memory and dask doesn't support |
I think we'd be open to fixing this when it doesn't compromise readability. Can you open a new issue with some particularly bad examples? |
I wouldn't necessarily say that it's particularly bad, but see the discussion following #2922 (comment). |
Closing as stale. If someone wanted to implement |
As of xarray 0.18.0,
DataArray.clip()
no longer supports theout
argument. This is due to #5184. Could you please restoreout
support?@max-sixty
The text was updated successfully, but these errors were encountered: