From 3b873f14d1ec709fe6df3ab053ecff3f363c7510 Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 28 Apr 2009 21:07:43 +0000 Subject: These changes allow the HSTWCS object ot be used for transformations and when updating the headers git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7974 fe389314-cf27-0410-b35b-8c050e845b92 --- hstwcs/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hstwcs/__init__.py') 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] -- cgit