diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-03-15 18:34:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 18:34:26 -0400 |
commit | 01541f2822d0d4b37b96f6b42e35963b132f1947 (patch) | |
tree | bab227db0f97f70cd02f1d22b7b0c19726b7fbff /numpy/lib/histograms.py | |
parent | fc26f49cca51207596862ad2df986d03ec56b19b (diff) | |
parent | e441c291b2e10c8de85a9d950d0add552d0ebd83 (diff) | |
download | numpy-01541f2822d0d4b37b96f6b42e35963b132f1947.tar.gz |
Merge pull request #10618 from eric-wieser/avoid-nontuple-indices
MAINT: Stop using non-tuple indices internally
Diffstat (limited to 'numpy/lib/histograms.py')
-rw-r--r-- | numpy/lib/histograms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py index ccc6c0616..cf40fcfe0 100644 --- a/numpy/lib/histograms.py +++ b/numpy/lib/histograms.py @@ -860,7 +860,7 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None): ni[i], ni[j] = ni[j], ni[i] # Remove outliers (indices 0 and -1 for each dimension). - core = D*[slice(1, -1)] + core = D*(slice(1, -1),) hist = hist[core] # Normalize if normed is True |