Ignore:
Timestamp:
Nov 17, 2005, 2:00:56 PM (19 years ago)
Author:
duncan
Message:

remove bugs in get_min_max_indexes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/data_manager.py

    r2032 r2035  
    35883588    else:
    35893589        lat_max_index = searchsorted(latitudes, maxlat)+1
    3590 
    35913590    if minlon == None:
    35923591        lon_min_index = 0
     
    35973596       
    35983597    if maxlon == None:
    3599         lat_max_index = len(longitudes)
     3598        lon_max_index = len(longitudes)
    36003599    else:
    3601         lat_max_index = searchsorted(longitudes, maxlon)+1
    3602 
    3603     return lat_min_index, lat_max_index, lon_min_index, lat_max_index
     3600        lon_max_index = searchsorted(longitudes, maxlon)+1
     3601
     3602    return lat_min_index, lat_max_index, lon_min_index, lon_max_index
    36043603       
    36053604   
Note: See TracChangeset for help on using the changeset viewer.