daducci / COMMIT

Linear framework to combine tractography and tissue micro-structure estimation with diffusion MRI
Other
43 stars 33 forks source link

Wrong structureIC, if all groups have the same number of streamlines #53

Closed MarioOcampo closed 5 years ago

MarioOcampo commented 5 years ago

For the case: normIC == group_sparsity and group_is_ordered == True. The streamlines (in the .trk file) are sorted by group and the input structureIC contains the number of elements per group. If all groups have the same number of streamlines, the following error occurs when the function fit is executed:

commit/proximals.pyx in commit.proximals.prox_group_sparsity()
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)
daducci commented 5 years ago

Fixed because we removed a deprecated function, i.e. is_sorted