IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
PipelineBase Class Reference
Inheritance diagram for PipelineBase:

Public Member Functions

None export_settings_to_file (self, str file_path)
 Saves the current settings of the pipeline and its modules to a file.
 
None import_settings_from_file (self, str file_path)
 Loads the settings of the pipeline and its modules from a file.
 
Any process (self, Any data)
 Processes the input data through all pipeline modules and returns the result.
 

Protected Attributes

 _modules
 

Detailed Description

Base class for implementing a custom pipeline.

Provides a partial implementation of the IPipeline interface. Can be used as a foundation for creating custom pipeline behavior.

Since
ids_peak_common 1.1

Definition at line 10 of file pipeline_base.py.

Member Function Documentation

◆ export_settings_to_file()

None export_settings_to_file ( self,
str file_path )

Saves the current settings of the pipeline and its modules to a file.

This base implementation calls export_settings_to_string() and writes the resulting string to the specified file path.

Reimplemented from IPipeline.

Definition at line 22 of file pipeline_base.py.

◆ import_settings_from_file()

None import_settings_from_file ( self,
str file_path )

Loads the settings of the pipeline and its modules from a file.

This base implementation reads the file contents and passes them to import_settings_from_string() to restore the pipeline state.

Reimplemented from IPipeline.

Definition at line 37 of file pipeline_base.py.

◆ process()

Any process ( self,
Any data )

Processes the input data through all pipeline modules and returns the result.

This base implementation iterates over all modules returned by get_modules(), calling each module's process() method in sequence and passing the result along.

Parameters
dataThe input data to process.
Returns
The processed input.

Reimplemented from IPipeline.

Reimplemented in DefaultPipeline.

Definition at line 54 of file pipeline_base.py.

Field Documentation

◆ _modules

_modules
protected

Reimplemented in DefaultPipeline.

Definition at line 68 of file pipeline_base.py.