aperiosoftware / astropy

Repository for the Astropy core package
www.astropy.org
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Started writing a decompress_hdu drop-in replacement #20

Closed astrofrog closed 1 year ago

astrofrog commented 1 year ago

CompImageHDU uses two functions to access the cfitsio-related functionality: compress_hdu and decompress_hdu from compressionmodule.c. If we can re-write these in Python using our codecs, we can remove cextern/cfitsio and compressionmodule.c. This PR is very much a WIP but a start at implementing decompress_hdu, which works at least for some compression types and dtypes! Of course there will be a lot of details, such as when the data size is not a multiple of tile size and that kind of thing, and returning the right dtype etc. but this is just a proof of concept for now.

Will need to be rebased once #19 is merged.

github-actions[bot] commented 1 year ago

👋 Thank you for your draft pull request! Do you know that you can use [ci skip] or [skip ci] in your commit messages to skip running continuous integration tests until you are ready?