From 0bc834376d0e7cb66c1b7f5e27d14402b84235d9 Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 17 Mar 2009 20:35:57 +0000 Subject: Added code which populates the science file with information about detector to image correction - header keywords and a lookup table extension. Cleaned coed. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7770 fe389314-cf27-0410-b35b-8c050e845b92 --- wcsutil/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wcsutil/__init__.py') diff --git a/wcsutil/__init__.py b/wcsutil/__init__.py index 894abad..05790f8 100644 --- a/wcsutil/__init__.py +++ b/wcsutil/__init__.py @@ -224,28 +224,28 @@ class HSTWCS(WCS): def all_pix2sky(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.all_pix2sky(self, self.det2im(*args),origin ) else: return WCS.all_pix2sky(self, *args) def pix2foc(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.pix2foc(self, self.det2im(*args), origin) else: return WCS.pix2foc(self, *args) def p4_pix2foc(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.p4_pix2foc(self, self.det2im(*args), origin) else: return WCS.p4_pix2foc(self, *args) def wcs_pix2sky(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.wcs_pix2sky(self, self.det2im(*args), origin) else: return WCS.wcs_pix2sky(self, *args) -- cgit