8000 MAINT: More Histogramdd cleanup by eric-wieser · Pull Request #10863 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: More Histogramdd cleanup #10863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 9, 2018
Merged
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MAINT: Remove asarray call on a known array
  • Loading branch information
eric-wieser committed Apr 8, 2018
commit dbaca82d6d8c63f4d48ec08ae07e45e5b7bc2000
2 changes: 0 additions & 2 deletions numpy/lib/histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,6 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
nbin[i] = len(edges[i]) + 1 # includes an outlier on each end
dedges[i] = np.diff(edges[i])

nbin = np.asarray(nbin)

# Handle empty input.
if N == 0:
return np.zeros(nbin-2), edges
Expand Down
0