Ignore:
Timestamp:
May 11, 2009, 3:27:59 PM (16 years ago)
Author:
rwilson
Message:

Replaced 'sets' module with 'frozenset' builtin class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/shallow_water/data_manager.py

    r6902 r7009  
    50035003    """
    50045004
    5005     from sets import ImmutableSet
    5006 
    50075005    msg = "grid_spacing can not be zero"
    50085006    assert not grid_spacing == 0, msg
     
    50165014    # Don't assume the zone of the segments is the same as the lower left
    50175015    # corner of the lat long data!!  They can easily be in different zones
    5018     lat_long_set = ImmutableSet()
     5016    lat_long_set = frozenset()
    50195017    for seg in segs:
    50205018        points_lat_long = points_needed(seg, ll_lat, ll_long, grid_spacing,
    50215019                                        lat_amount, long_amount, zone,
    50225020                                        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([]):
    50265024        msg = "URS region specified and polygon does not overlap."
    50275025        raise ValueError, msg
Note: See TracChangeset for help on using the changeset viewer.