summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-02-05 11:36:04 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-02-05 11:36:04 -0700
commit4c972e990bda981771a27366381c97681dc60e1c (patch)
tree9fadc255cbaadf6cae765039058011058c4dc1ef /numpy
parenta280f5e5d725de732a906b67172114b263ac3bfa (diff)
parent8b81a642c82875ada61dce17dd7c3c59493943ed (diff)
downloadnumpy-4c972e990bda981771a27366381c97681dc60e1c.tar.gz
Merge pull request #7193 from madphysicist/extra-assert
MAINT: Removed supurious assert in histogram estimators
Diffstat (limited to 'numpy')
-rw-r--r--numpy/lib/function_base.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index a49d02a1a..088c4c2cd 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -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