From 14920c765959aa32bac0f92a610dd5d84e80ac63 Mon Sep 17 00:00:00 2001 From: Giulia Biolo Date: Tue, 9 Dec 2025 19:41:24 +0100 Subject: [PATCH 1/3] Fixed bug: index mismatch between input and kept streamlines in set_regularisation --- commit/core.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit/core.pyx b/commit/core.pyx index e0754ed..8ec68e6 100644 --- a/commit/core.pyx +++ b/commit/core.pyx @@ -1115,7 +1115,7 @@ cdef class Evaluation : # check if group_idx contains all the indices of the input streamlines if regularisation['regIC'] == 'group_lasso' or regularisation['regIC'] == 'sparse_group_lasso': all_idx_in = np.sort(np.unique(np.concatenate(dictIC_params['group_idx']))) - all_idx = np.arange(self.DICTIONARY['IC']['nSTR'], dtype=np.int32) + all_idx = np.arange(self.DICTIONARY['TRK']['kept'].size, dtype=np.int32) if np.any(all_idx_in != all_idx): logger.error('Group indices must contain all the indices of the input streamlines') From 8dce9934770c8d798dcb5245d17b22a81bdb6a7c Mon Sep 17 00:00:00 2001 From: giuliabiolo <122462609+giuliabiolo@users.noreply.github.com> Date: Wed, 10 Dec 2025 10:03:41 +0100 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0e53f..53062f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### 🐛Fixed - Error when checking the number of streamlines in the weighted LASSO function - Error in verifying voxel correspondence between the lesion mask passed through the dictionary and the ISO weights map +- Error in params_IC and input tractogram dimension mismatch during set_regularization() --- --- From 7c35040199ae705bb45d1daa8603bd05275d6ba5 Mon Sep 17 00:00:00 2001 From: giuliabiolo <122462609+giuliabiolo@users.noreply.github.com> Date: Fri, 12 Dec 2025 10:52:23 +0100 Subject: [PATCH 3/3] Changelog update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53062f4..66fa39c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ ### 🐛Fixed - Error when checking the number of streamlines in the weighted LASSO function - Error in verifying voxel correspondence between the lesion mask passed through the dictionary and the ISO weights map -- Error in params_IC and input tractogram dimension mismatch during set_regularization() +- Error when checking the number of streamlines in the grouping structure for group LASSO regularization --- ---