From 6ebea3599b047858f7f7d0e61088829d3af3f708 Mon Sep 17 00:00:00 2001 From: Martin Craig <martin.craig@eng.ox.ac.uk> Date: Wed, 24 Oct 2018 19:32:55 +0100 Subject: [PATCH] Centre parameter should be passed as three separate string arguments --- fsl/wrappers/bet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/wrappers/bet.py b/fsl/wrappers/bet.py index e20ee3fb1..31660d122 100644 --- a/fsl/wrappers/bet.py +++ b/fsl/wrappers/bet.py @@ -62,7 +62,7 @@ def bet(input, output, **kwargs): # passed as a Python sequence centre = kwargs.pop("c", None) if centre is not None: - cmd += ['c', ] + list(centre) + cmd += ['-c', ] + [str(v) for v in centre] cmd += wutils.applyArgStyle('-', argmap=argmap, valmap=valmap, **kwargs) -- GitLab