summaryrefslogtreecommitdiff
path: root/stwcs/updatewcs/__init__.py
diff options
context:
space:
mode:
authorNadia Dencheva <nadia.astropy@gmail.com>2016-12-11 11:46:34 -0500
committerGitHub <noreply@github.com>2016-12-11 11:46:34 -0500
commitdc6eaa10f996af4173cebdd85f7a53d113272529 (patch)
treef44bbe11fe8507d9186ea5e5a0d6de2808a35b66 /stwcs/updatewcs/__init__.py
parent9fa6e818cc2f93ee65b4f979368e9db9eb8134b5 (diff)
parent1055491ec750387d3593a5200493985200233739 (diff)
downloadstwcs_hcf-dc6eaa10f996af4173cebdd85f7a53d113272529.tar.gz
Merge pull request #21 from nden/lazy-load-hdus
update to keep in sync with astropy
Diffstat (limited to 'stwcs/updatewcs/__init__.py')
-rw-r--r--stwcs/updatewcs/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/stwcs/updatewcs/__init__.py b/stwcs/updatewcs/__init__.py
index fe1eea2..46faa72 100644
--- a/stwcs/updatewcs/__init__.py
+++ b/stwcs/updatewcs/__init__.py
@@ -116,6 +116,7 @@ def makecorr(fname, allowed_corr):
"""
logger.info("Allowed corrections: {0}".format(allowed_corr))
f = fits.open(fname, mode='update')
+ f.readall()
# Determine the reference chip and create the reference HSTWCS object
nrefchip, nrefext = getNrefchip(f)
wcsutil.restoreWCS(f, nrefext, wcskey='O')