|
|
|
|
@ -96,13 +96,19 @@ def calculate_asset_eaf_contributions(plant_result, eq_results, standard_scope,
|
|
|
|
|
|
|
|
|
|
for asset in eq_results:
|
|
|
|
|
asset_name = asset.get("aeros_node").get("node_name")
|
|
|
|
|
contribution_factor = 0
|
|
|
|
|
birbaum = 0
|
|
|
|
|
current_availability = 0
|
|
|
|
|
downtime = 0
|
|
|
|
|
|
|
|
|
|
if asset_name not in standard_scope:
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
contribution_factor = asset.get("contribution_factor", 0.0)
|
|
|
|
|
birbaum = asset.get("contribution", 0.0)
|
|
|
|
|
current_availability = asset.get("availability", 0.0)
|
|
|
|
|
downtime = asset.get("total_downtime", 0.0)
|
|
|
|
|
if asset:
|
|
|
|
|
contribution_factor = asset.get("contribution_factor", 0.0)
|
|
|
|
|
birbaum = asset.get("contribution", 0.0)
|
|
|
|
|
current_availability = asset.get("availability", 0.0)
|
|
|
|
|
downtime = asset.get("total_downtime", 0.0)
|
|
|
|
|
|
|
|
|
|
# Filter 1: Importance too low
|
|
|
|
|
if contribution_factor < MIN_BIRNBAUM_IMPORTANCE:
|
|
|
|
|
|