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

AstropyDeprecationWarning: Accessing an HDU after an HDUList is closed #14

Closed
pllim opened this Issue Jan 24, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@pllim
Contributor

pllim commented Jan 24, 2017

Example test: https://ssb.stsci.edu/pandokia/pandokia.cgi?query=detail&key_id=36464238

[WARNING ] /srv/iraf/bldtmp/porcelain.g23AA24Tm8/porcelain/envs/dev/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py:1094:
AstropyDeprecationWarning: Accessing an HDU after an HDUList is closed, where
that HDU was no read while the HDUList was open
is deprecated.  That is, you did something like:

    >>> hdulist.close()
    >>> print(hdulist[2].header)

even though hdulist[2] had not been read yet.  Instead
do:

    >>> print(hdulist[2].header)
    >>> hdulist.close()

or open the file with lazy_load_hdus=False to read all
the HDUs into memory immediately upon opening the file.

  """), AstropyDeprecationWarning)
@mcara

This comment has been minimized.

Member

mcara commented Feb 4, 2017

Fixed in #30

@mcara mcara closed this Feb 4, 2017

@mcara mcara self-assigned this Mar 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment