Changeset 9341 for trunk/anuga_core/source/anuga
- Timestamp:
- Sep 19, 2014, 5:05:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/quantity_setting_functions.py
r9338 r9341 198 198 199 199 # Get indices fInds of points in pi which are not set 200 if(pi is'All'):200 if(pi == 'All'): 201 201 fInside=(1-isSet) 202 202 fInds=(fInside==1).nonzero()[0] 203 203 else: 204 if(pi is'Extent' and type(fi) is str and os.path.exists(fi)):204 if(pi == 'Extent' and type(fi) is str and os.path.exists(fi)): 205 205 # Here fi MUST be a gdal-compatible raster 206 206 # Then we get the extent from the raster itself … … 250 250 isSet[fInds]=1 251 251 252 if( not min(isSet)==1):252 if( min(isSet) != 1): 253 253 raise Exception, 'Some points were not inside any polygon' 254 254
Note: See TracChangeset
for help on using the changeset viewer.