You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!
I'm building a workflow that take as input some strings and want to use a modified version of those lazy inputs to set some inputs of a node.
For example, my workflow include a "subject_name" input which is a string giving the subject name and I wan to use this input for a node which have a "output_prefix" input to the subject name + "_". Can I do this without creating a new node ...etc ?
wf = pydra.Workflow(
"name of the workflow",
input_spec=["subject_name", ...]
)
wf.add(some_node(
name="Node name",
output_prefix = wf.lzin.subject_name + "_" # <------- i want to get this: f"{subject_name}_"
))
The text was updated successfully, but these errors were encountered:
I had been thinking of a feature like this for accessing properties of lazily accessed objects, whereby Pydra automatically inserts a new node behind the scenes to perform the access operation. This could be extended to handle operators or perhaps even lambdas too.
From my experience teaching people how to use Pydra, people intuitively expect these sort of operations are to be able to work so it would be good to support it
Hi there!
I'm building a workflow that take as input some strings and want to use a modified version of those lazy inputs to set some inputs of a node.
For example, my workflow include a "subject_name" input which is a string giving the subject name and I wan to use this input for a node which have a "output_prefix" input to the subject name + "_". Can I do this without creating a new node ...etc ?
The text was updated successfully, but these errors were encountered: