Skip to content

Commit

Permalink
CADC-9555 - set lazy_load_hdus to True in astropy.io.fits.open call (#…
Browse files Browse the repository at this point in the history
…150)

* CADC-9555 - set lazy_load_hdus=True
  • Loading branch information
SharonGoliath authored Sep 23, 2021
1 parent 3ec6eb6 commit cff27b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion caom2utils/caom2utils/data_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def get_local_headers_from_fits(fqn):
:param fqn str fully-qualified name of the FITS file on disk
:return list of fits.Header instances
"""
hdulist = fits.open(fqn, memmap=True, lazy_load_hdus=False)
hdulist = fits.open(fqn, memmap=True, lazy_load_hdus=True)
hdulist.verify('fix')
hdulist.close()
headers = [h.header for h in hdulist]
Expand Down
2 changes: 1 addition & 1 deletion caom2utils/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ edit_on_github = False
github_project = opencadc/caom2tools
install_requires = cadcdata==2.0rc2 caom2>=2.4 astropy>=2.0 spherical-geometry>=1.2.11;python_version>="3.6" vos>=3.1.1
# version should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
version = 1.6.2
version = 1.6.3



Expand Down

0 comments on commit cff27b5

Please sign in to comment.