Changeset 7038
- Timestamp:
- May 14, 2009, 3:07:19 PM (16 years ago)
- Location:
- branches/numpy/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/abstract_2d_finite_volumes/quantity.py
r7037 r7038 14 14 Otherwise raise an exception 15 15 """ 16 17 from types import FloatType, IntType, LongType, NoneType 16 18 17 19 from anuga.utilities.numerical_tools import ensure_numeric, is_scalar … … 404 406 405 407 from anuga.geospatial_data.geospatial_data import Geospatial_data 406 from types import FloatType, IntType, LongType, ListType, NoneType407 408 408 409 # Treat special case: Polygon situation … … 460 461 461 462 msg = 'Indices must be a list, array or None' 462 #assert (indices is None 463 assert isinstance(indices, (None, list, num.ndarray)), msg 463 assert isinstance(indices, (NoneType, list, num.ndarray)), msg 464 464 465 465 # Determine which 'set_values_from_...' to use … … 1188 1188 1189 1189 msg = 'Indices must be a list, array or None' 1190 #assert indices is None or isinstance(indices, (list, num.ndarray)), msg 1191 assert isinstance(indices, (list, None, num.ndarray)), msg 1190 assert isinstance(indices, (NoneType, list, num.ndarray)), msg 1192 1191 1193 1192 if location == 'centroids': -
branches/numpy/anuga/utilities/test_polygon.py
r7035 r7038 1505 1505 1506 1506 1507 def test_inside_polygon_main(self):1507 def NOtest_inside_polygon_main(self): 1508 1508 # FIXME (Ole): Why is this disabled? 1509 1509 #print "inside",inside
Note: See TracChangeset
for help on using the changeset viewer.