-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
Fix: Util function to ensure list of dicts all have same keys for hek #3240
Conversation
Hello @nabobalis! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-06-25 19:13:16 UTC |
So, let me check I understand this, some records that are coming back from the HEK have different (in table parlance) columns than others? So you are making sure all the rows contain the superset of all columns? |
Yes. if the column doesn't exist, we add it and set the value to None. |
I think a different approach would be to use the i.e.: >>> d1 = {1:2, 3:4}; d2 = {3:4, 5:6}
>>> s = set()
>>> s.union(*map(lambda x: x.keys(), [d1, d2]))
{1, 3, 5} I can not promise this will work though, but it would mean not having to actually change the list of dicts. |
K |
Also the constants thing needs a changelog entry of its own. |
Done. |
Trying to fix that astropy dev failure. |
What happens if you set the units and constants versions at the start of conftest.py |
Database failures are back on Linux 3.7. Which is why it seems both the offline and astropy dev build failed. |
So I changed them to macos. |
Fixes #3238 via a large HACK.
Not really sure this is a sane way to do it however.