Open zachlindsey opened 7 months ago
It would be nice if there was an interface StringInterpolate that allowed something like the following:
StringInterpolate
interpolate = utility.StringInterpolate() interpolate.inputs.input_string = "{greeting}, {name}!" interpolate.inputs.greeting = "Hello" interpolate.inputs.name = "Nipype" res = interpolate.run() assert res.outputs.output_string == "Hello, Nipype!"
Only input_string is required, the rest are simply added. This is especially handy as an input to a CommandLine node, where the args are supplied by other nodes.
input_string
CommandLine
Summary
It would be nice if there was an interface
StringInterpolate
that allowed something like the following:Only
input_string
is required, the rest are simply added. This is especially handy as an input to aCommandLine
node, where the args are supplied by other nodes.