eelbrain.load_pipeline

eelbrain.load_pipeline(spec=None, root=None, log_level=None, **state)

Load a Pipeline subclass from a Python file.

Parameters:
  • spec (Path | str | None) – Path to a Python file that defines a Pipeline subclass, optionally followed by :ClassName. spec can also be a directory, in which case pipeline.py is tried first and then experiment.py. If spec is omitted, the current working directory is searched. When only a file path is provided, the file must define exactly one Pipeline subclass.

  • root (Path | str) – Root directory for the experiment.

  • log_level (str | int) – Override Pipeline.screen_log_level for the loaded pipeline.

  • **state – Initial state parameters passed to the Pipeline constructor.

Returns:

Instantiated Pipeline.

Return type:

pipeline