-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Surprising deepcopy semantics with dtype='object' #4362
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
the issue is that we use xarray/xarray/core/variable.py Line 939 in 43a2a4b
numpy.ndarray defines __array_function__ ).
You can reproduce the issue using just In [14]: a0.copy()[0] is a0[0]
Out[14]: True We might want to use |
I agree, marking this as a bug. We should use |
@darikg are you interested to send in a PR? |
Sure! I'll be back in a couple days when I get a chance |
I think this is a bug, and would be fixed with an extra deepcopy around here
The text was updated successfully, but these errors were encountered: