diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-01 00:18:35 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-01 00:18:35 +0000 |
commit | 6627d4e993df8033d5e078f24d84cb028ba09d0c (patch) | |
tree | c12123a37141d78d3ca32a8e5754ba947b086d45 /numpy/lib/function_base.py | |
parent | 931a4a355aeb3a5f272af91258b848e81114febb (diff) | |
download | numpy-6627d4e993df8033d5e078f24d84cb028ba09d0c.tar.gz |
Fix-up error in piecewise.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 4aa891c4e..e44e37027 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -209,7 +209,7 @@ def piecewise(x, condlist, funclist, *args, **kw): if n == n2-1: # compute the "otherwise" condition. totlist = condlist[0] for k in range(1, n): - totlist |= condlist + totlist |= condlist[k] condlist.append(~totlist) n += 1 if (n != n2): |