8000 MAINT: Removed supurious assert in histogram estimators by madphysicist · Pull Request #7193 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Removed supurious assert in histogram estimators #7193

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 1 commit into from
Feb 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
MAINT: Removed supurious assert in histogram estimators
  • Loading branch information
madphysicist committed Feb 5, 2016
commit 8b81a642c82875ada61dce17dd7c3c59493943ed
3 changes: 0 additions & 3 deletions numpy/lib/function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ def _hist_optim_numbins_estimator(a, estimator):
will choose the appropriate estimator and return it's estimate for the optimal
number of bins.
"""
assert isinstance(estimator, basestring)
# private function should not be called otherwise

if a.size == 0:
return 1

Expand Down
0