Changeset 7009 for branches/numpy/anuga/shallow_water/data_manager.py
- Timestamp:
- May 11, 2009, 3:27:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/shallow_water/data_manager.py
r6902 r7009 5003 5003 """ 5004 5004 5005 from sets import ImmutableSet5006 5007 5005 msg = "grid_spacing can not be zero" 5008 5006 assert not grid_spacing == 0, msg … … 5016 5014 # Don't assume the zone of the segments is the same as the lower left 5017 5015 # corner of the lat long data!! They can easily be in different zones 5018 lat_long_set = ImmutableSet()5016 lat_long_set = frozenset() 5019 5017 for seg in segs: 5020 5018 points_lat_long = points_needed(seg, ll_lat, ll_long, grid_spacing, 5021 5019 lat_amount, long_amount, zone, 5022 5020 isSouthHemisphere) 5023 lat_long_set |= ImmutableSet(points_lat_long)5024 5025 if lat_long_set == ImmutableSet([]):5021 lat_long_set |= frozenset(points_lat_long) 5022 5023 if lat_long_set == frozenset([]): 5026 5024 msg = "URS region specified and polygon does not overlap." 5027 5025 raise ValueError, msg
Note: See TracChangeset
for help on using the changeset viewer.