cmp.pipelines.common module

Definition of common parent classes for pipelines.

class cmp.pipelines.common.Pipeline(project_info)[source]

Bases: traits.has_traits.HasTraits

Parent class that extends HasTraits and represents a processing pipeline.

It is extended by the various pipeline classes.

anat_flow = None
check_config()[source]

Old method that was checking custom settings (obsolete).

check_stages_execution()[source]

Check stage execution.

clear_stages_outputs()[source]

Clear processing stage outputs.

create_stage_flow(stage_name)[source]

Create the sub-workflow of a processing stage.

Parameters

stage_name

fill_stages_outputs()[source]

Update processing stage output list for visual inspection.

launch_process()[source]

Launch the processing.

number_of_cores = 1
subject = 'sub-01'
class cmp.pipelines.common.ProcessThread(group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None)[source]

Bases: threading.Thread

Class use to represent the pipeline process as a threading.Thread.

pipeline <Instance>

Any Pipeline instance

pipeline = <traits.trait_types.Instance object>
run()[source]

Execute the pipeline.

class cmp.pipelines.common.ProgressThread(group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None)[source]

Bases: threading.Thread

Class use to monitor stage execution in a threading.Thread.

Information is display in the ProgressWindow (Not used anymore by CMP3)

pw = <traits.trait_types.Instance object>
run()[source]

Monitors stage execution a workflow.

stage_names = []
stages = {}
class cmp.pipelines.common.ProgressWindow[source]

Bases: traits.has_traits.HasTraits

Progress window of stage execution

(Not used anymore by CMP3)