-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Allow adding a table column as a list of mixin-type objects (+ row improvement) #9165
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
Conversation
ee06a5c
to
a5c4c86
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.
Love the simplifying speedup, and like the ability to just understand list of Quantity, Time. But think I would prefer to just error for lists that can not be easily understood (instead of coercing to object
; see in-line comment).
Outstanding issue here is what to do with lists that cannot be understood - turn into object or error. |
a5c4c86
to
7468364
Compare
Rebased and addressed the outstanding issue. |
Opened #9230 as the promised follow-up issue to talk about object arrays from list. |
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.
Conclusion: modulo the annoying missing empty line in CHANGES.rst
(rebase messes this up too often!), all looks good. Approving so we can merge once that is fixed.
7468364
to
03ef3f7
Compare
Thank you @taldcroft! |
PR astropy#9165 allowed a `Table` to be initialized from list of rows or list of dicts containing mixin objects, but some of the relevant documentation was not updated. This commit removes the obsolete claims.
This PR started with a desire to allow initializing a table with row data that has Quantity values. But along the way I noticed that the existing legacy way of handling rows is slow and unnecessarily complex:
EDIT (MHvK): the change for rows is nice in that it
fixes #8976