sum_block
Parallel block that aggregates FIT rates from multiple sub-blocks.
SumBlock
Bases: BlockInterface
Parallel block that aggregates FIT rates from multiple sub-blocks.
Manages path junctions by executing sub-blocks in parallel (starting from the same input state) and calculating the sum of their individual contributions (deltas) to the total system rates.
Source code in src/ecc_analyzer/core/sum_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 47 48 49 50 51 52 53 | |
__init__(name, sub_blocks)
Initializes the SumBlock with a list of parallel sub-blocks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The descriptive name of the aggregation block. |
required |
sub_blocks
|
list[BlockInterface]
|
List of blocks whose results will be summed. |
required |
Source code in src/ecc_analyzer/core/sum_block.py
16 17 18 19 20 21 22 23 24 | |
compute_fit(spfm_rates, lfm_rates)
Aggregates the FIT rate transformations from all internal parallel blocks.
Calculates the delta contribution of each block relative to the input state and sums these deltas to produce the final output state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spfm_rates
|
dict[FaultType, float]
|
Current residual failure rates (Input state). |
required |
lfm_rates
|
dict[FaultType, float]
|
Current latent failure rates (Input state). |
required |
Returns:
| Type | Description |
|---|---|
tuple[dict[FaultType, float], dict[FaultType, float]]
|
tuple[dict[FaultType, float], dict[FaultType, float]]: A tuple containing: - Final aggregated SPFM rates. - Final aggregated LFM rates. |
Source code in src/ecc_analyzer/core/sum_block.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |