Add support for reading compressed FITS files with UNCOMPRESSED_DATA#19363
Add support for reading compressed FITS files with UNCOMPRESSED_DATA#19363saimn merged 5 commits intoastropy:mainfrom
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.
|
|
Thanks, LGTM. |
|
I'm tempted to call it a bug fix since it is stopping people opening real FITS files. Do you agree @saimn? |
|
@saimn - ok I've now added a bugfix changelog entry so this is ready for review. I'll try and check whether we ever supported writing but tbh I'm not sure we should since it's no longer recommended? |
|
@saimn do you want to officially approve? Thanks, all! |
|
Also, precommit got stuck, so please rebase? |
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
162d385 to
e5a3571
Compare
|
@saimn should definitely review this before it is merged |
|
@saimn - just to check, as you said LGTM higher up, can you approve this if you are happy with it? |
…les with UNCOMPRESSED_DATA
…363-on-v7.2.x Backport PR #19363 on branch v7.2.x (Add support for reading compressed FITS files with UNCOMPRESSED_DATA)
Description
This PR adds support for reading in FITS files that use the legacy UNCOMPRESSED_DATA fallback mechanism (rather than GZIP_COMPRESSED_DATA).
The fact this didn't work let two two issues which shows these files do exist in the wild:
Just to confirm, this seems to work with the file linked in #17821
Not sure if this is an enhancement or a bug fix though - what do you think @saimn?
The diff for
_tiled_compression.pymakes more sense if you ignore whitespace diffsFixes #15477
Fixes #17821