Skip to content

Commit 6508a5e

Browse files
committed
Preallocate RETROICOR contents.
1 parent e0b4a11 commit 6508a5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phys2denoise/metrics/retroicor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def retroicor(
6464
phase = np.empty((n_scans, n_slices))
6565

6666
for i_slice in range(n_slices):
67+
retroicor_regressors.append(np.empty((n_scans, 2 * n_harmonics)))
68+
6769
# Initialize slice timings for current slice
6870
crslice_timings = t_r * np.arange(n_scans) + slice_timings[i_slice]
6971

0 commit comments

Comments
 (0)