-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
needs triageIssue that has not been reviewed by xarray team memberIssue that has not been reviewed by xarray team member
Description
What is your issue?
safe_setitem can raise a ValueError with the following message:
xarray/xarray/coding/common.py
Lines 116 to 119 in a987bb1
| f"failed to prevent overwriting existing key {key} in attrs{var_str}. " | |
| "This is probably an encoding field used by xarray to describe " | |
| "how a variable is serialized. To proceed, remove this key from " | |
| "the variable's attributes manually." |
I found the first sentence very confusing, as "failed to do X" made me think we wanted to do X but failed, when in fact the opposite is true: we failed (raised an exception), in order to do X (avoid overwriting a protected attribute)
Metadata
Metadata
Assignees
Labels
needs triageIssue that has not been reviewed by xarray team memberIssue that has not been reviewed by xarray team member