-
-
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
Setting var._attrs = None creates an empty dictionary? #9560
Comments
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
xarray/xarray/namedarray/core.py Lines 524 to 529 in 7bdc6d4
_attrs is None at that point, it is replaced by an empty dict .
|
Gotcha, if this is expected behavior, then perhaps in the context of
|
also, interestingly, if you look at the setter you'll notice that we're storing xarray/xarray/namedarray/core.py Lines 531 to 533 in 7bdc6d4
|
I would suggest using public APIs to side-step Xarray's caching layer is possible, e.g., |
Nice, seems to work for |
What is your issue?
If I do the following in repl, I get the weird behavior (described in comments).
Wondering what might be the cause of this? I know I am not using it as intended; this is for the xarray_jax experiment.
@shoyer would be good to get your perspective
The text was updated successfully, but these errors were encountered: