Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
7e520b0a
Commit
7e520b0a
authored
2 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Plain Diff
Merge branch 'bf/bianca' into 'master'
Bf/bianca See merge request fsl/fslpy!370
parents
bcb83e65
ccd52b3a
No related branches found
No related tags found
No related merge requests found
Pipeline
#17088
canceled
2 years ago
Stage: test
Stage: style
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/wrappers/bianca.py
+6
-2
6 additions, 2 deletions
fsl/wrappers/bianca.py
tests/test_wrappers/test_wrappers.py
+2
-2
2 additions, 2 deletions
tests/test_wrappers/test_wrappers.py
with
8 additions
and
4 deletions
fsl/wrappers/bianca.py
+
6
−
2
View file @
7e520b0a
...
...
@@ -71,10 +71,14 @@ def bianca_overlap_measures(lesionmask,
@wutils.fileOrImage
(
'
wmh_map
'
,
'
vent_mask
'
)
@wutils.fslwrapper
def
bianca_perivent_deep
(
wmh_map
,
vent_mask
,
outputdir
,
do_stats
=
1
):
def
bianca_perivent_deep
(
wmh_map
,
vent_mask
,
minclustersize
,
outputdir
,
do_stats
=
1
):
"""
Wrapper function for the FSL ``bianca_perivent_deep`` command.
"""
return
[
'
bianca_perivent_deep
'
,
wmh_map
,
vent_mask
,
str
(
do_stats
),
outputdir
]
str
(
minclustersize
),
str
(
do_stats
),
outputdir
]
@wutils.fileOrImage
(
'
struc
'
,
'
csf_pve
'
,
'
mni2struc
'
)
...
...
This diff is collapsed.
Click to expand it.
tests/test_wrappers/test_wrappers.py
+
2
−
2
View file @
7e520b0a
...
...
@@ -574,8 +574,8 @@ def test_bianca():
result
=
fw
.
bianca_overlap_measures
(
'
lesions
'
,
9
,
'
mask
'
,
True
)
assert
result
.
stdout
[
0
]
==
expected
expected
=
f
'
{
bianca_perivent_deep
}
wmh vent 2 out
'
result
=
fw
.
bianca_perivent_deep
(
'
wmh
'
,
'
vent
'
,
'
out
'
,
2
)
expected
=
f
'
{
bianca_perivent_deep
}
wmh vent
10
2 out
'
result
=
fw
.
bianca_perivent_deep
(
'
wmh
'
,
'
vent
'
,
10
,
'
out
'
,
2
)
assert
result
.
stdout
[
0
]
==
expected
expected
=
f
'
{
make_bianca_mask
}
struc csf warp 1
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment