-
Notifications
You must be signed in to change notification settings - Fork 320
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
Don't write extra metadata for xarray in a nested dict #2934
Don't write extra metadata for xarray in a nested dict #2934
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2934 +/- ##
==========================================
- Coverage 65.31% 65.31% -0.01%
==========================================
Files 209 209
Lines 28038 28037 -1
==========================================
- Hits 18313 18312 -1
Misses 9725 9725 |
@jana-d FYI, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this bug! I have one minor suggestion to make the UT more complete but otherwise LGTM.
I think the proposed solution is good, there is no need for the extra_metadata tag. Also agree that not merging everything into one json string might be cleaner, but happy either way. |
since attrs do not support nested dicts
8e51fd7
to
4d6c107
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with this solution as well.
the point of using the extra_metadata key to group "all aadditional metadata" was to separate it from the must-have/-be attributes, but seems to give more headache than benefit
Since this prevents export to netcdf
Fixes #2922