summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Dencheva <nadia.astropy@gmail.com>2016-12-11 11:14:07 -0500
committerNadia Dencheva <nadia.astropy@gmail.com>2016-12-11 11:14:07 -0500
commit9a98109b92eeb3028ee4a9d501f1d0d1bbbba7c0 (patch)
treecc9861d56ae4608b61d06a9090cc94bc44ada33c
parent9fa6e818cc2f93ee65b4f979368e9db9eb8134b5 (diff)
downloadstwcs_hcf-9a98109b92eeb3028ee4a9d501f1d0d1bbbba7c0.tar.gz
update to keep in sync with astropy
-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')