Changeset 2548
- Timestamp:
- Mar 15, 2006, 12:14:12 PM (19 years ago)
- Location:
- inundation-numpy-branch/utilities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation-numpy-branch/utilities/numerical_tools.py
r2545 r2548 4 4 """ 5 5 6 7 #Establish which Numeric package to use 8 #(this should move to somewhere central) 9 try: 10 from numpy import ArrayType, array, sum, innerproduct, ravel, sqrt, searchsorted, sort, concatenate 11 except: 12 print 'Could not find numpy - using Numeric' 13 from Numeric import ArrayType, array, sum, innerproduct, ravel, sqrt, searchsorted, sort, concatenate 6 from numpy import ArrayType, array, sum, innerproduct, ravel, sqrt 7 from numpy import searchsorted, sort, concatenate 14 8 15 9 -
inundation-numpy-branch/utilities/polygon.py
r2531 r2548 4 4 """ 5 5 6 7 try: 8 from scipy import Float, Int, zeros, ones, array, concatenate, reshape, dot 9 except: 10 print 'Could not find scipy - using Numeric' 11 from Numeric import Float, Int, zeros, ones, array, concatenate, reshape, dot 12 13 6 from numpy import Float, Int, zeros, ones, array, concatenate, reshape, dot 14 7 from math import sqrt 8 15 9 from utilities.numerical_tools import ensure_numeric 16 10 -
inundation-numpy-branch/utilities/test_polygon.py
r2442 r2548 3 3 4 4 import unittest 5 from Numericimport zeros, array, allclose5 from numpy import zeros, array, allclose 6 6 from math import sqrt, pi 7 7
Note: See TracChangeset
for help on using the changeset viewer.