Add support for opening FITS files with fsspec#16
Add support for opening FITS files with fsspec#16derekocallaghan wants to merge 3 commits intoUSRA-STI:mainfrom
fsspec#16Conversation
|
Hi @AdamGoldstein-USRA and @BillCleveland-USRA, Just checking if any more info or changes are required for this PR? Thanks |
|
I'll look over the code and may approve with the caveat being that an optional dependency would need to be installed prior to use. |
|
The changes you committed today has merge conflict. It will need to be corrected at the command line. |
|
I'm unsure what the issue is here, I've manually copied the |
|
In the future, do not add updates from main to your pull request unless directed. It muddies up the change history. |
|
I'll take a look at it and fix it. |
Thanks, I've moved the test function into the class, it's running locally but still has a conflict. |
No problem. I wouldn't normally do this but originally did it earlier in an attempt to resolve the conflict. |
Would you like me to add |
I'd like to try one more thing, i.e. the class-based test function without the recent |
No. |
Ok. |
9d02680 to
58cc0ca
Compare
Signed-off-by: Derek O'Callaghan <derekocallaghan@users.noreply.github.com>
|
I reverted to the original PR commit and manually resolved the |
|
Apologies, it looks like GitHub has merged the |
|
That's ok. I'm going to look at the current pull and offer some suggestions when I'm done with the review. |
gdt.core.file.FitsFileContextManagerusesastropy.io.fits.open()to open local FITS files. This PR adds support for usingfsspecto open FITS files stored remotely, removing the requirement for prior FITS retrieval and local storage, while also automatically caching the files if required. This is achieved with theuse_fsspecandfsspec_kwargsparameters supported byastropy.io.fits.open()A couple of test cases have been added that use
fsspecto open and cache GBM catalog FITS files.