diff options
author | dencheva <dencheva@stsci.edu> | 2009-12-23 10:21:21 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2009-12-23 10:21:21 -0500 |
commit | 6d99b7ab0a8b374df23294272d8dcc5887540a53 (patch) | |
tree | 63295dc93b928efdd3ae7c5390c77aa32bb7a192 /distortion/models.py | |
parent | 2f294bfefb6316ee52c5621353e5a654504df698 (diff) | |
download | stwcs_hcf-6d99b7ab0a8b374df23294272d8dcc5887540a53.tar.gz |
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
Diffstat (limited to 'distortion/models.py')
-rw-r--r-- | distortion/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
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']) |