Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo.

  • Loading branch information...
commit 105f9006d6823d54ababf218e8d61d356e54e700 1 parent 75be054
@stefanv stefanv authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Lib/stats/stats.py
View
2  Lib/stats/stats.py
@@ -1216,7 +1216,7 @@ def threshold(a, threshmin=None, threshmax=None, newval=0):
a = asarray(a).copy()
mask = zeros(a.shape, dtype=bool)
if threshmin is not None:
- mask = (a < threshmin)
+ mask |= (a < threshmin)
if threshmax is not None:
mask |= (a > threshmax)
a[mask] = newval
Please sign in to comment.
Something went wrong with that request. Please try again.