Skip to content

Commit

Permalink
Construct ragged arrays as dtype=object in srm.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidt0x committed Sep 9, 2024
1 parent a96493f commit bece98f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions brainiak/funcalign/fastsrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ def reduce_data(imgs, atlas, n_jobs=1, low_ram=False, temp_dir=None):
reduced_data_list = np.reshape(reduced_data_list,
(n_subjects, n_sessions))
else:
reduced_data_list_array = np.array(reduced_data_list, dtype=object)
if len(np.array(reduced_data_list).shape) == 1:
reduced_data_list = np.reshape(reduced_data_list,
(n_subjects, n_sessions))
Expand Down

0 comments on commit bece98f

Please sign in to comment.