Ignore:
Timestamp:
04/12/09 16:07:45 (11 years ago)
Author:
pnorton
Message:

Imroved the colour bar code so that a legend colour bar can be used without specifying any intervals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/geoplot/trunk/lib/geoplot/tests/test_utils.py

    r5403 r6089  
    1616    return abs((f1-f2)/size) < thres 
    1717 
    18 def _areNumericListsEqual(result,answer): 
     18def _areNumericListsEqualIgnoringOrder(result,answer): 
    1919    """ 
    2020    tests if two lists are equal (converts all values to float before comparison) 
     
    3737    return True 
    3838 
     39def _areNumericListsEqual(result,answer): 
     40    """ 
     41    tests if two lists are equal (converts all values to float before comparison) 
     42    """ 
     43    if (len(result) != len(answer)): 
     44        return False 
     45 
     46    for i in range(len(result)): 
     47        x = float(result[i]) 
     48        y = float(answer[i]) 
     49         
     50        if not _floatCompare(x,y): 
     51            return False 
     52 
     53    return True 
     54 
    3955def _comparePublicAttribues(A, B): 
    4056 
Note: See TracChangeset for help on using the changeset viewer.