From ebbd2caa93a0144fcea6e8f368ebaf012b8d1d13 Mon Sep 17 00:00:00 2001 From: hack Date: Mon, 31 Oct 2011 16:53:35 +0000 Subject: Corrected a couple of (minor) interface violations with PyFITS in updatewcs calls to '.getval()'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13925 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 18f73b0..2607e48 100644 --- a/lib/stwcs/updatewcs/npol.py +++ b/lib/stwcs/updatewcs/npol.py @@ -248,7 +248,7 @@ class NPOLCorr(object): continue npl.close() - naxis = pyfits.getval(npolfile, ext=1, key='NAXIS') + naxis = pyfits.getval(npolfile, 'NAXIS', ext=1) ccdchip = nplextname #npol_header['CCDCHIP'] kw = { 'NAXIS': 'Size of the axis', -- cgit