Changeset 6304 for branches/numpy/anuga/pmesh/mesh_interface.py
- Timestamp:
- Feb 10, 2009, 11:11:04 AM (16 years ago)
- Location:
- branches/numpy
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/pmesh/mesh_interface.py
r6180 r6304 3 3 from anuga.utilities.polygon import point_in_polygon ,populate_polygon 4 4 from anuga.utilities.numerical_tools import ensure_numeric 5 import Numericas num5 import numpy as num 6 6 from anuga.utilities.polygon import inside_polygon 7 7 … … 156 156 157 157 # Simple check 158 bounding_polygon = ensure_numeric(bounding_polygon, num. Float)158 bounding_polygon = ensure_numeric(bounding_polygon, num.float) 159 159 msg = 'Bounding polygon must be a list of points or an Nx2 array' 160 160 assert len(bounding_polygon.shape) == 2, msg
Note: See TracChangeset
for help on using the changeset viewer.