From 68af301dc9c9f5672bac358181226bebfb97c6cc Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Tue, 21 May 2024 13:25:57 -0700 Subject: [PATCH] FIX stacking --- cortex/mapper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortex/mapper/utils.py b/cortex/mapper/utils.py index bf8c76e1..9d249770 100644 --- a/cortex/mapper/utils.py +++ b/cortex/mapper/utils.py @@ -116,7 +116,7 @@ def vol2surf( # Select only voxels in the thick mask voxel2fsnative = [vfs[:, mask] for vfs in voxel2fsnative] if target_surface == "native": - data_projected = nanproject(data, voxel2fsnative) + data_projected = nanproject(data, scipy.sparse.vstack(voxel2fsnative)) else: fsnative2fsaverage = cortex.db.get_mri_surf2surf_matrix( subject, "fiducial", fs_subj=subject_freesurfer, target_subj=target_surface