Open maedoc opened 7 years ago
This seems equivalent do a labelconvert
from mrtrix.
I'm also certain this should be rewritten a la
aa_nnz = aparc_aseg_mat > 0
aparc_aseg_mat = aparc_aseg_mat * (~aa_nnz) + fs_conn_map[aparc_aseg_mat] * aa_nzz
but the issue remains: fs_conn_map
has negative values, which are invalid for indexing.
Testing locally, I see a failure in
test_show_aparc_aseg_with_new_values()
, where inI've
fs_to_conn_indices_mapping.get(aparc_aseg_matrix[i][j])
returning-1.0
, which is not a valid index. I don't see why this would pass on Travis but not locally (macos 10 10).