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
Avoid duplicate storage of info in serialized columns. #12607
Conversation
Good plan but I think this can be done with a smaller change footprint. At least this passes existing tests and your new test. I think the existing logic is simpler to understand since there is no recursion for the non-mixin case.
|
Just an FYI, I find this to be an easier way to get ECSV output to the console without making a temp file:
|
@taldcroft - yes, that makes sense. I probably should not have combined this with the case in #12589, where I found that recursion was needed, because with structured dtypes one can no longer assume that a |
As is, info is store on any primary data column, but also in the serialized column, which makes the header unnecessarily long.
b6dac9a
to
754aac9
Compare
OK, went with your suggestion (though minus the walrus, since |
Hmm, failures are real -- for hdf5. Will check. |
OK, found that in reconstructing |
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.
I see your point that this will need updating when structured data are serialized, but agree that this way is better for the bug-fix backport.
OK, thanks. Will merge and rebase the other PRs. |
@meeseeksdev backport to v5.0.x |
…607-on-v5.0.x Backport PR #12607 on branch v5.0.x (Avoid duplicate storage of info in serialized columns.)
As is, info is store on any primary data column, but also in the serialized column, which makes the header unnecessarily long. (Saw this while working on #12589, and includes a bit of the other small refactoring there.)
I think this is a bug, but could also call it refactoring.
Comparing this PR with current master:
Fixes #
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CI
label.no-changelog-entry-needed
label. If this is a manual backport, use theskip-changelog-checks
label unless special changelog handling is necessary.astropy-bot
check might be missing; do not let the green checkmark fool you.backport-X.Y.x
label(s) before merge.