Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@TomNicholas, here are some changes to help things along a bit.
The tests on your branch were passing because the fits test was skipped due to astropy being missing. But for the same reason, mypy was failing.
This PR fixes this so that the fits test is no longer skipped, and also so that the vendored code is called instead of the code from the kerchunk lib.
Here's what I'm getting at this point with the changes in this PR:
When I comment out the
compression
arg in the following call within the vendoredprocess_file
function, I get past the error above:Then I hit the following error:
When I change all
>
to<
in the following dict within the vendoredfits.py
file:Then I get past the KeyError, and hit this error:
This is because the
zarr.json
key within therefs
does not contain a/
.I suspect the changes I had to make to the vendored
fits.py
file to get past a couple of errors is the wrong thing to do, which is why this PR does not contain those changes.However, I wanted to at least see how far I could get so I could at least provide this additional information that my help you get this sorted out correctly.