diff options
| author | Brandon Carter <bcarter@mit.edu> | 2017-08-19 21:12:03 -0400 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2017-09-24 14:48:57 -0600 |
| commit | a3b67226c48ebcbc12fd2820ec124d070ea7610c (patch) | |
| tree | e356a8be5b2113d7f34a5bdd0c83d56909e95342 /numpy/lib | |
| parent | 9b8f46b45f2232413a9b276b68da6f044349336f (diff) | |
| download | numpy-a3b67226c48ebcbc12fd2820ec124d070ea7610c.tar.gz | |
allow non-strictly increasing bins
Diffstat (limited to 'numpy/lib')
| -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 86b29b3a2..8b20c36a5 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -783,7 +783,7 @@ def histogram(a, bins=10, range=None, normed=False, weights=None, bins = bin_edges else: bins = asarray(bins) - if np.any(bins[1:] <= bins[:-1]): + if np.any(bins[:-1] > bins[1:]): raise ValueError( 'bins must increase monotonically.') |
