Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
2eb327e9
Commit
2eb327e9
authored
May 03, 2018
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fsl/scripts/atlasq.py
View file @
2eb327e9
...
...
@@ -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'
:
...
...
tests/test_atlasq_ohi.py
View file @
2eb327e9
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment