Skip to content

On the fly lzin modifier ? #723

@BastienCagna

Description

@BastienCagna

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}_"
))

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions