pipeline_block
Executes a sequence of logic blocks for FIT rate transformations.
PipelineBlock
Bases: BlockInterface
Executes a sequence of blocks where the output of one block becomes the input of the next.
This block type is used to model serial hardware paths or sequential processing steps (e.g., Source -> ECC -> Trim).
Source code in src/ecc_analyzer/core/pipeline_block.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
__init__(name, blocks)
Initializes the PipelineBlock with a sequence of sub-blocks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The descriptive name of the pipeline. |
required |
blocks
|
list[BlockInterface]
|
A list of blocks implementing BlockInterface to be executed in strict sequential order. |
required |
Source code in src/ecc_analyzer/core/pipeline_block.py
15 16 17 18 19 20 21 22 23 24 | |
compute_fit(spfm_rates, lfm_rates)
Sequentially processes all blocks in the pipeline.
Passes the output rates of one block as the input to the next block in the list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spfm_rates
|
dict[FaultType, float]
|
Initial residual failure rates entering the pipeline. |
required |
lfm_rates
|
dict[FaultType, float]
|
Initial latent failure rates entering the pipeline. |
required |
Returns:
| Type | Description |
|---|---|
tuple[dict[FaultType, float], dict[FaultType, float]]
|
tuple[dict[FaultType, float], dict[FaultType, float]]: A tuple containing: - Final SPFM rates after the last block. - Final LFM rates after the last block. |
Source code in src/ecc_analyzer/core/pipeline_block.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |