Commit 2eb327e9 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'bf/label_atlas' into 'master'

More label atlas bug fixes

See merge request fsl/fslpy!52
parents 670630ec e30b62aa
Pipeline #1968 passed with stages
in 14 minutes and 2 seconds
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment