summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2013-06-11 16:14:27 -0400
committerhack <hack@stsci.edu>2013-06-11 16:14:27 -0400
commit23a427c00ed8168c7116b8b7d09c63d271ca1a54 (patch)
tree8a4487ff72b2c6946cce30e92a2a6d61942c7cd0
parent05d1dce7d577d746482a7cb33d83703ab0b6e769 (diff)
downloadstwcs_hcf-23a427c00ed8168c7116b8b7d09c63d271ca1a54.tar.gz
Updated the return value from coeff_converter.sid2idc so that it returns a pair of None values when no OCX/OCY keywords are found in the image header.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@25262 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r--lib/stwcs/distortion/coeff_converter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stwcs/distortion/coeff_converter.py b/lib/stwcs/distortion/coeff_converter.py
index a0ff1a4..301ee48 100644
--- a/lib/stwcs/distortion/coeff_converter.py
+++ b/lib/stwcs/distortion/coeff_converter.py
@@ -51,7 +51,7 @@ def sip2idc(wcs):
if None in [ocx10, ocx11, ocy10, ocy11]:
print 'First order IDC coefficients not found, exiting ...\n'
- return
+ return None, None
idc_coeff = np.array([[ocx11, ocx10], [ocy11, ocy10]])
cx = np.zeros((order+1,order+1), dtype=np.double)
cy = np.zeros((order+1,order+1), dtype=np.double)