From 6d99b7ab0a8b374df23294272d8dcc5887540a53 Mon Sep 17 00:00:00 2001 From: dencheva Date: Wed, 23 Dec 2009 15:21:21 +0000 Subject: Use 'import numpy as np' and a fix to a header comment git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8518 fe389314-cf27-0410-b35b-8c050e845b92 --- distortion/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'distortion/models.py') diff --git a/distortion/models.py b/distortion/models.py index d4651fa..96d5d72 100644 --- a/distortion/models.py +++ b/distortion/models.py @@ -3,7 +3,7 @@ from __future__ import division # confidence high import types # Import PyDrizzle utility modules import mutil -import numpy as N +import numpy as np import mutil from mutil import combin @@ -72,8 +72,8 @@ class GeometryModel: to the reference position of the chip. """ - _cxs = N.zeros(shape=cx.shape,dtype=cx.dtype) - _cys = N.zeros(shape=cy.shape,dtype=cy.dtype) + _cxs = np.zeros(shape=cx.shape,dtype=cx.dtype) + _cys = np.zeros(shape=cy.shape,dtype=cy.dtype) _k = self.norder + 1 # loop over each input coefficient for m in xrange(_k): @@ -219,7 +219,7 @@ class GeometryModel: _cy[0,0] = 0. if isinstance(_p,types.ListType) or isinstance(_p,types.TupleType): - _p = N.array(_p,dtype=N.float64) + _p = np.array(_p,dtype=np.float64) _convert = yes dxy = _p - (self.refpix['XREF'],self.refpix['YREF']) -- cgit