Ignore:
Timestamp:
Apr 18, 2007, 8:42:11 AM (17 years ago)
Author:
duncan
Message:

backwards compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/coordinate_transforms/geo_reference.py

    r4387 r4389  
    9494        self.zone = infile.zone[0]
    9595
    96         self.false_easting = infile.false_easting[0]
    97         self.false_northing = infile.false_northing[0]
    98        
    99         self.datum = infile.datum       
    100         self.projection = infile.projection
    101         self.units = infile.units
    10296       
    10397        # Fix some assertion failures
     
    115109        assert (type(self.zone) == types.IntType)
    116110       
     111        try:
     112            self.false_easting = infile.false_easting[0]
     113            self.false_northing = infile.false_northing[0]
     114       
     115            self.datum = infile.datum       
     116            self.projection = infile.projection
     117            self.units = infile.units
     118        except:
     119            pass
    117120        assert (self.false_easting == DEFAULT_FALSE_EASTING)
    118121        assert (self.false_northing == DEFAULT_FALSE_NORTHING)
Note: See TracChangeset for help on using the changeset viewer.