-
Notifications
You must be signed in to change notification settings - Fork 10
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
remove None values form asdf tree by default #212
Conversation
this should work with any ASDF version so I think we should include this in master and rebase here once ready @vhirtham this branch -> master -> asdf28 |
Codecov Report
@@ Coverage Diff @@
## master #212 +/- ##
==========================================
- Coverage 99.73% 99.72% -0.01%
==========================================
Files 69 69
Lines 3719 3694 -25
==========================================
- Hits 3709 3684 -25
Misses 10 10
Continue to review full report at Codecov.
|
This is to reproduce the old ASDF behavior pre asdf-format/asdf#863
Some tutorials seem to run now 👍
Also, some utilities provided by
boltons
could be useful for further tree manipulationhttps://sedimental.org/remap.html#drop-empty-values
https://boltons.readthedocs.io/en/latest/iterutils.html#nested
Notes
drop_none_attr
wrapper fromweldx.asdf.utils
with this (done)Changes
to_tree
now also removesNone
valuesRelated Issues
Closes # (add issue numbers)
Checks