Skip to content

Commit

Permalink
Define padded mixing arr if no skip_vols.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 20, 2024
1 parent 99bf9ca commit eed7389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fmripost_aroma/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def _get_ica_confounds(mixing, aroma_features, skip_vols, newpath=None):
aroma_confounds = os.path.join(newpath, 'AROMAAggrCompAROMAConfounds.tsv')

# pad mixing_arr with rows of zeros corresponding to number of non steady-state volumes
padded_mixing_arr = mixing_arr.copy()
if skip_vols > 0:
zeros = np.zeros([skip_vols, mixing_arr.shape[1]])
padded_mixing_arr = np.vstack([zeros, mixing_arr])
Expand Down

0 comments on commit eed7389

Please sign in to comment.