niworkflows.engine.splicer module

Workflow splicing operations.

niworkflows.engine.splicer.splice_workflow(root_wf: Workflow, replacements: dict[str, EngineBase], *, write_graph: bool = False, debug: bool = False)[source]

Splice a workflow’s tagged nodes / workflows and replace connections with alternatives.

Requires that the workflow has been tagged with a _tag attribute.

niworkflows.engine.splicer.tag(tag: str) Callable[source]

Decorator to set a tag on an init_…wf function.

This is used to mark nodes or workflows for replacement in the splicing process.