Hi,
can I somehow define a function in nipype that can take a variable number of arguments?
So instead of
def fun(a,b): c = a+b return c
can I define something like
def fun(*args): c = sum(args) return c
and then use it in a node
sum = Node(fun, input_names=[?], output_names=[“c”], name=“sum”)
I suppose I can’t but I wonder what would the workaround be.