Skip to content
Snippets Groups Projects
Commit 2eb327e9 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'bf/label_atlas' into 'master'

More label atlas bug fixes

See merge request fsl/fslpy!52
parents 670630ec e30b62aa
No related branches found
No related tags found
No related merge requests found
......@@ -315,7 +315,7 @@ def ohi(namespace):
labels = labels[0]
if labels is None: label = 'Unclassified'
else: label = atlasDesc.labels[int(labels)].name
else: label = atlasDesc.find(value=int(labels)).name
print('<b>{}</b><br>{}'.format(atlasDesc.name, label))
elif atlasDesc.atlasType == 'probabilistic':
......
......@@ -77,7 +77,7 @@ def test_coords(seed):
if label is None:
return expected + 'Unclassified'
else:
return expected + atlas.desc.labels[int(label)].name
return expected + atlas.desc.find(value=int(label)).name
capture = CaptureStdout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment