From 6cb02660163c107e2cf407c1483bad485fa5fd95 Mon Sep 17 00:00:00 2001 From: Jake Vanderplas Date: Mon, 11 Jun 2012 14:07:47 -0700 Subject: remove unused variables from histogramdd --- numpy/lib/function_base.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'numpy') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 2de5c6193..9df44a477 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -350,7 +350,6 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None): # Using digitize, values that fall on an edge are put in the right bin. # For the rightmost bin, we want values equal to the right # edge to be counted in the last bin, and not as an outlier. - outliers = zeros(N, int) for i in arange(D): # Rounding precision mindiff = dedges[i].min() @@ -369,7 +368,6 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None): # Compute the sample indices in the flattened histogram matrix. ni = nbin.argsort() - shape = [] xy = zeros(N, int) for i in arange(0, D-1): xy += Ncount[ni[i]] * nbin[ni[i+1:]].prod() -- cgit v1.2.1