Changeset 2515


Ignore:
Timestamp:
Mar 9, 2006, 3:38:38 PM (19 years ago)
Author:
nick
Message:

fixed errors in checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/data_manager.py

    r2514 r2515  
    21272127
    21282128    msg = 'Must use latitudes and longitudes for minlat, maxlon etc'
    2129     assert -90 > minlat > 90 , msg
    2130     assert -90 > maxlat > 90 , msg
    2131     assert -180 > minlon > 180 , msg
    2132     assert -180 > maxlon > 180 , msg
     2129
     2130    if minlat != None:
     2131        assert -90 < minlat < 90 , msg
     2132    if maxlat != None:
     2133        assert -90 < maxlat < 90 , msg
     2134    if minlon != None:
     2135        assert -180 < minlon < 180 , msg
     2136    if maxlon != None:
     2137        assert -180 < maxlon < 180 , msg
    21332138 
    21342139
Note: See TracChangeset for help on using the changeset viewer.