diff options
author | Brandon Carter <bcarter@mit.edu> | 2017-06-25 23:04:51 -0400 |
---|---|---|
committer | Brandon Carter <bcarter@mit.edu> | 2017-06-25 23:04:51 -0400 |
commit | e12f16df86301881ac72f6bcab8831e9f3e23a24 (patch) | |
tree | 03678e238c51e40ebc981fee134064640e7cdacc /numpy/lib/function_base.py | |
parent | ea7fac99e65037699eefe97b714808f7c73bf147 (diff) | |
download | numpy-e12f16df86301881ac72f6bcab8831e9f3e23a24.tar.gz |
minor change to the logic
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 8bde521bf..48922721f 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -782,7 +782,7 @@ def histogram(a, bins=10, range=None, normed=False, weights=None, bins = bin_edges else: bins = asarray(bins) - if not np.all(bins[1:] > bins[:-1]): + if np.any(bins[1:] <= bins[:-1]): raise ValueError( 'bins must increase monotonically.') |