Changeset 5656


Ignore:
Timestamp:
Aug 14, 2008, 9:17:18 AM (16 years ago)
Author:
kristy
Message:

Change of zone notification for sts files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r5630 r5656  
    52255225        x[i] = easting
    52265226        y[i] = northing
    5227         msg='all sts gauges need to be in the same zone'
    5228         assert zone==refzone,msg
     5227        if zone != refzone:
     5228            msg='All sts gauges need to be in the same zone. \n'
     5229            msg+='offending gauge:Zone %d,%.4f, %4f\n' %(zone, easting, northing)
     5230            msg+='previous gauge:Zone %d,%.4f, %4f' %(old_zone, old_easting, old_northing)
     5231            raise Exception, msg
     5232        old_zone = zone
     5233        old_easting = easting
     5234        old_northing = northing
    52295235
    52305236    if origin is None:
Note: See TracChangeset for help on using the changeset viewer.