Changeset 2534


Ignore:
Timestamp:
Mar 13, 2006, 2:33:38 PM (18 years ago)
Author:
ole
Message:

More testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/utilities/test_numerical_tools.py

    r2533 r2534  
    165165
    166166
    167         bins = [0.5,1.5,2,3]
     167        bins = [1.1,2,3.1,4]
     168        #print histogram(a, bins)
     169        assert allclose(histogram(a, bins), [0,6,0,1])
     170
     171
     172        bins = [0,1.5,2,3]
    168173        assert allclose(histogram(a, bins), [8,0,3,4])
     174
     175
     176        assert allclose(histogram(a, [0,3]), histogram(a, [-0.5,3]))
    169177
    170178
Note: See TracChangeset for help on using the changeset viewer.