diff options
Diffstat (limited to 'hstwcs/__init__.py')
-rw-r--r-- | hstwcs/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hstwcs/__init__.py b/hstwcs/__init__.py index 7de38fe..bf47cdc 100644 --- a/hstwcs/__init__.py +++ b/hstwcs/__init__.py @@ -81,11 +81,8 @@ def makecorr(fname, allowed_corr): utils.write_archive(f[nrefext].header) if 'DET2IMCorr' in allowed_corr: - kw2update = det2im.DET2IMCorr.updateWCS(f) - for kw in kw2update: - #these kw are written to the primary header - f[0].header.update(kw, kw2update[kw]) - + det2im.DET2IMCorr.updateWCS(f) + for i in range(len(f))[1:]: # Perhaps all ext headers should be corrected (to be consistent) extn = f[i] |