Skip to content
Snippets Groups Projects
Commit 6b10281d authored by Martin Craig's avatar Martin Craig
Browse files

Fix boolean options for FAST wrapper

parent 1bf3176b
No related branches found
No related tags found
No related merge requests found
......@@ -33,12 +33,19 @@ def fast(imgs, out='fast', **kwargs):
asrt.assertIsNifti(*imgs)
valmap = {
'nobias' : wutils.SHOW_IF_TRUE,
'verbose' : wutils.SHOW_IF_TRUE,
'Prior' : wutils.SHOW_IF_TRUE,
'segments' : wutils.SHOW_IF_TRUE,
}
argmap = {
'n_classes' : 'class',
}
cmd = ['fast', '-v', '--out=%s' % out]
cmd += wutils.applyArgStyle('--=', argmap=argmap, **kwargs)
cmd += wutils.applyArgStyle('--=', valmap=valmap, argmap=argmap, singlechar_args=True, **kwargs)
cmd += imgs
return cmd
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