Allow adding a table column as a list of mixin-type objects (+ row improvement)#9165
Merged
bsipocz merged 4 commits intoastropy:masterfrom Sep 14, 2019
Merged
Allow adding a table column as a list of mixin-type objects (+ row improvement)#9165bsipocz merged 4 commits intoastropy:masterfrom
bsipocz merged 4 commits intoastropy:masterfrom
Conversation
ee06a5c to
a5c4c86
Compare
mhvk
reviewed
Aug 25, 2019
Contributor
mhvk
left a comment
There was a problem hiding this comment.
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).
mhvk
reviewed
Sep 14, 2019
Contributor
|
Outstanding issue here is what to do with lists that cannot be understood - turn into object or error. |
a5c4c86 to
7468364
Compare
Member
Author
|
Rebased and addressed the outstanding issue. |
mhvk
reviewed
Sep 14, 2019
Member
Author
|
Opened #9230 as the promised follow-up issue to talk about object arrays from list. |
mhvk
approved these changes
Sep 14, 2019
Contributor
mhvk
left a comment
There was a problem hiding this comment.
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
Member
|
Thank you @taldcroft! |
This was referenced Nov 25, 2019
eerovaher
added a commit
to eerovaher/astropy
that referenced
this pull request
Aug 3, 2021
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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