diff options
author | dencheva <dencheva@stsci.edu> | 2015-05-26 10:20:54 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2015-05-26 10:20:54 -0400 |
commit | 71f456c7257e07ad51d530f8c177792c64454781 (patch) | |
tree | 21667f22301e06cf4887848e53bc7d983c3a3692 /lib/stwcs/updatewcs/npol.py | |
parent | e61b0356aae80773baa27d8fd5bfbd5d5393fa85 (diff) | |
download | stwcs_hcf-71f456c7257e07ad51d530f8c177792c64454781.tar.gz |
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
Diffstat (limited to 'lib/stwcs/updatewcs/npol.py')
-rw-r--r-- | lib/stwcs/updatewcs/npol.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |