Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 when checking the number of streamlines in the grouping structure for group LASSO regularization

---
---
Expand Down
2 changes: 1 addition & 1 deletion commit/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down