Skip to content

Commit ed3e7a0

Browse files
committed
small improvement
1 parent 8a7eeef commit ed3e7a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nistats/thresholding.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ def map_threshold(stat_img=None, mask_img=None, alpha=.001, threshold=3.,
230230
"height control should be one of {0}", height_control_methods)
231231

232232
# if two-sided, correct alpha by a factor of 2
233-
alpha_ = alpha
234-
if two_sided:
235-
alpha_ = alpha / 2
233+
alpha_ = alpha / 2 if two_sided else alpha
236234

237235
# if height_control is 'fpr' or None, we don't need to look at the data
238236
# to compute the threshold

0 commit comments

Comments
 (0)