Changeset 2534
- Timestamp:
- Mar 13, 2006, 2:33:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/utilities/test_numerical_tools.py
r2533 r2534 165 165 166 166 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] 168 173 assert allclose(histogram(a, bins), [8,0,3,4]) 174 175 176 assert allclose(histogram(a, [0,3]), histogram(a, [-0.5,3])) 169 177 170 178
Note: See TracChangeset
for help on using the changeset viewer.