From 6e6602ef7dc2168138959522b18afe556bc1321e Mon Sep 17 00:00:00 2001 From: Louis Potok Date: Thu, 8 Mar 2018 10:02:21 -0800 Subject: BUG: fix error message in numpy.select --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 7b0c3007b..422a87322 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -632,7 +632,7 @@ def select(condlist, choicelist, default=0): deprecated_ints = True else: raise ValueError( - 'invalid entry in choicelist: should be boolean ndarray') + 'invalid entry {} in condlist: should be boolean ndarray'.format(i)) if deprecated_ints: # 2014-02-24, 1.9 -- cgit v1.2.1