Skip to content

Commit 4fd169a

Browse files
author
Shoshana Berleant
committed
fix lingregress (swapped z/y! )
1 parent 61c96ad commit 4fd169a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/compcor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _run_interface(self, runtime):
6969
'''
7070
timesteps = range(numvols)
7171
for voxel in range(numvoxels):
72-
m, b, _, _, _ = stats.linregress(M[:, voxel], timesteps)
72+
m, b, _, _, _ = stats.linregress(timesteps, M[:, voxel])
7373
M[:, voxel] = M[:, voxel] - [m*t + b for t in timesteps]
7474
'''
7575
# "... prior to column-wise variance normalization."

0 commit comments

Comments
 (0)