Changeset 7193 for branches/numpy/anuga
- Timestamp:
- Jun 12, 2009, 10:28:57 AM (16 years ago)
- Location:
- branches/numpy/anuga
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/config.py
r7176 r7193 4 4 import os 5 5 import sys 6 import numpy as num7 6 8 7 -
branches/numpy/anuga/coordinate_transforms/geo_reference.py
r7176 r7193 232 232 # @note If 'points' is a list then a changed list is returned. 233 233 def change_points_geo_ref(self, points, points_geo_ref=None): 234 """Change the geo reference of a list or Numeric array of points to234 """Change the geo reference of a list or numeric array of points to 235 235 be this reference.(The reference used for this object) 236 236 If the points do not have a geo ref, assume 'absolute' values -
branches/numpy/anuga/culvert_flows/test_culvert_routines_pipe_1pct.py
r7177 r7193 8 8 from anuga.utilities.system_tools import get_pathname_from_package 9 9 from anuga.culvert_flows.culvert_routines import boyd_generalised_culvert_model 10 import Numericas num10 import numpy as num 11 11 12 12 -
branches/numpy/anuga/mesh_engine/test_generate_mesh.py
r7176 r7193 412 412 'Failed!') 413 413 414 correct = num.array(segattlist, num. Int)414 correct = num.array(segattlist, num.int) 415 415 self.failUnless(num.allclose(data['generatedsegmentmarkerlist'].flat, 416 416 correct.flat), -
branches/numpy/anuga/shallow_water/shallow_water_domain.py
r7176 r7193 1801 1801 """ 1802 1802 1803 import Numericas num1803 import numpy as num 1804 1804 1805 1805 # Create a temp array to store updated depth dependent friction for wet elements 1806 1806 # EHR this is outwardly inneficient but not obvious how to avoid recreating each call?????? 1807 1807 N=len(domain) 1808 wet_friction = num.zeros(N, num. Float)1808 wet_friction = num.zeros(N, num.float) 1809 1809 wet_friction[:] = default_n0 # Initially assign default_n0 to all array so sure have no zeros values 1810 1810 -
branches/numpy/anuga/utilities/polygon.py
r6689 r7193 388 388 # If this fails it is going to be because the points can't be 389 389 # converted to a numeric array. 390 msg = 'Points could not be converted to Numeric array'390 msg = 'Points could not be converted to numeric array' 391 391 raise Exception, msg 392 392
Note: See TracChangeset
for help on using the changeset viewer.