Skip to content

Commit 41a8eef

Browse files
committed
Comment lines that tie filtering with adding the mean back
1 parent a9d34b2 commit 41a8eef

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

post_fmriprep.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
TESTED WITH:
5656
# Anaconda 5.5.0
57-
# Python 3.7.0
57+
# Python 3.7.0
5858
# pandas 0.23.4
5959
# numpy 1.15.1
6060
# nilearn 0.5.0
@@ -227,11 +227,12 @@ def fmripop_remove_confounds(args):
227227
# label of framewise displacmeent confound as found in the tsv file
228228
fd_label = 'framewise_displacement'
229229

230-
# Check if we want high-pass filtering. High-pass filtering essentially removes the mean/DC component of the signal.
231-
if args.high_pass is None:
230+
# Check if we want high-pass filtering.
231+
# High-pass filtering essentially removes the mean/DC component of the signal, so we need to add it back.
232+
#if args.high_pass is None:
232233
# If we do not high-pass filter, disable adding the mean image back after cleaning the data.
233-
args.add_mean_img_back = False
234-
args.detrend = False
234+
# args.add_mean_img_back = False
235+
# args.detrend = False
235236

236237
# Check if we want to regress framwise displacement
237238
if args.fmw_disp_th is not None:

0 commit comments

Comments
 (0)