We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f933bd commit cb5e270Copy full SHA for cb5e270
niworkflows/utils/timeseries.py
@@ -42,7 +42,7 @@ def _cifti_timeseries(dataset):
42
}
43
seg = {label: [] for label in list(labels.values()) + ['Other']}
44
for bm in matrix.get_index_map(1).brain_models:
45
- label = 'Other' if bm.brain_structure not in labels else labels[bm.brain_structure]
+ label = labels.get(bm.brain_structure, 'Other')
46
seg[label] += list(range(bm.index_offset, bm.index_offset + bm.index_count))
47
48
return dataset.get_fdata(dtype='float32').T, seg
0 commit comments