rnalysis.filtering.Pipeline.import_pipeline

classmethod Pipeline.import_pipeline(filename: str | Path) GenericPipeline

Import a Pipeline from a Pipeline YAML file or YAML-like string.

Note that YAML has no tuple type: tuples within the Pipeline’s function parameters were saved as lists, and are therefore returned as lists. The only exception is the top-level tuple of positional arguments of each function, which is restored on import.

Parameters:

filename (str or pathlib.Path) – name of the YAML file containing the Pipeline, or a YAML-like string.

Returns:

the imported Pipeline

Return type:

Pipeline