From 71f456c7257e07ad51d530f8c177792c64454781 Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 26 May 2015 14:20:54 +0000 Subject: Raise an IOError if NPOLFILE or D2IMFILE keywords have values but the files are not found on disk. Part of #1074 git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40433 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/updatewcs/npol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs/updatewcs/npol.py') diff --git a/lib/stwcs/updatewcs/npol.py b/lib/stwcs/updatewcs/npol.py index 2f8d836..33579f0 100644 --- a/lib/stwcs/updatewcs/npol.py +++ b/lib/stwcs/updatewcs/npol.py @@ -82,7 +82,7 @@ class NPOLCorr(object): dx,dy = cls.getData(nplfile, ccdchip) idccoeffs = cls.getIDCCoeffs(header) - if idccoeffs != None: + if idccoeffs is not None: dx, dy = cls.transformData(dx,dy, idccoeffs) # Determine EXTVER for the WCSDVARR extension from the -- cgit