Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when reading gzipped ASDF-in-FITS file #416

Merged
merged 2 commits into from
Dec 21, 2017

Conversation

drdavella
Copy link
Contributor

This PR adds a new method to asdf.generic_io for retrieving the URI from an arbitrary file-like object. This means the file no longer needs to be opened twice to detect the URI. As a consequence, reading gzipped ASDF-in-FITS files works as expected.

This fixes #415.

@drdavella drdavella added the bug label Dec 20, 2017
@drdavella drdavella added this to the v1.4.0 milestone Dec 20, 2017
@drdavella drdavella self-assigned this Dec 20, 2017
@stsci-bot
Copy link

stsci-bot bot commented Dec 20, 2017

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 95.141% when pulling a5570ab on drdavella:asdf-fits-gzip into 63c11ff on spacetelescope:master.

@drdavella drdavella merged commit e8cd5a5 into asdf-format:master Dec 21, 2017
@drdavella drdavella deleted the asdf-fits-gzip branch December 21, 2017 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASDF fails to open gzipped ASDF-in-FITS file
2 participants