Skip to content

Commit 1c83c4b

Browse files
committed
FIX: CreateDenseFromTemplate formatting
1 parent 6e385b2 commit 1c83c4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nibabies/interfaces/workbench.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ class CiftiCreateDenseFromTemplate(WBCommand):
177177

178178
def _format_arg(self, name, trait_spec, value):
179179
if name in ("metric", "label", "volume"):
180-
argstr = ""
180+
cmds = []
181181
for val in value:
182182
if val[-1] is True: # volume specific
183-
val = val[:2] + ("-from-cropped ",)
184-
argstr += " ".join((f"-{name}",) + val)
185-
return trait_spec.argstr % argstr
183+
val = val[:2] + ("-from-cropped",)
184+
cmds.append(" ".join((f"-{name}",) + val))
185+
return trait_spec.argstr % " ".join(cmds)
186186
return super()._format_arg(name, trait_spec, value)
187187

188188

0 commit comments

Comments
 (0)