From 23a427c00ed8168c7116b8b7d09c63d271ca1a54 Mon Sep 17 00:00:00 2001 From: hack Date: Tue, 11 Jun 2013 20:14:27 +0000 Subject: 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 --- lib/stwcs/distortion/coeff_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs') 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) -- cgit