-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
API designtopic-metadataRelating to the handling of metadata (i.e. attrs and encoding)Relating to the handling of metadata (i.e. attrs and encoding)
Description
Currently, variable attributes are checked for equality before allowing for a merge via a call to xarray_equal. It should be possible to merge datasets even if some of the variable metadata disagrees (conflicting attributes should be dropped). This is already the behavior for global attributes.
The right design of this feature should probably include some optional argument to Dataset.merge indicating how strict we want the merge to be. I can see at least three versions that could be useful:
- Drop conflicting metadata silently.
- Don't allow for conflicting values, but drop non-matching keys.
- Require all keys and values to match.
We can argue about which of these should be the default option. My inclination is to be as flexible as possible by using 1 or 2 in most cases.
Metadata
Metadata
Assignees
Labels
API designtopic-metadataRelating to the handling of metadata (i.e. attrs and encoding)Relating to the handling of metadata (i.e. attrs and encoding)