Repository navigation
Fix serialization of structured masked arrays - #16380
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
2b1071f to
f4d84f8
Compare
taldcroft
left a comment
There was a problem hiding this comment.
This looks great, thanks @mhvk!
The only thing I noticed is that the repr of the test MaskedColumn in test_write_structured_masked_column is not what I would expect:
<MaskedColumn dtype='(int32, int32)' length=2>
-- <== Should be (--, 2)
(3, 4)
I haven't looked into this. If there is a simple fix maybe it could be tossed in here, otherwise perhaps we need another issue?
|
Hmm, that is indeed annoying -- and something that must have been present for a long time! The |
|
See #16387 for the issue with |
…380-on-v6.1.x Backport PR #16380 on branch v6.1.x (Fix serialization of structured masked arrays)
Fix endian-dependence of test introduced in gh-16380
Description
This pull request fixes multiple related failures for writing masked structured data to ECSV (either as
MaskedColumnorMasked), which in turn meant someTimeformats could not be serialized if the time was masked.As a small side commit, it also ensures the
reprof aMaskedRecarrayshows the correct class name.p.s. Not quite sure about the milestone. Put 6.1.1, but obviously nice if it can still get included in 6.1.0
Fixes #16370