feature/reliability_stat
Cizz22 11 months ago
parent 6984997065
commit a2ebe93406

@ -137,10 +137,10 @@ def get_eaf_timeline(eaf_input: float, oh_session_id: str, oh_duration = 8000) -
# Generate down periods for each EAF scenario # Generate down periods for each EAF scenario
down_periods = { down_periods = {
'eaf1': generate_down_periods(start_date, end_date, 5, min_duration=1, max_duration=7), 'eaf1': generate_down_periods(start_date, end_date, 5, min_duration=30, max_duration=90),
'eaf2': generate_down_periods(start_date, end_date, 5, min_duration=1, max_duration=7), 'eaf2': generate_down_periods(start_date, end_date, 5, min_duration=30, max_duration=90),
'eaf3': generate_down_periods(start_date, end_date, 5, min_duration=1, max_duration=7), 'eaf3': generate_down_periods(start_date, end_date, 5, min_duration=30, max_duration=90),
'eaf4': generate_down_periods(start_date, end_date, 5, min_duration=1, max_duration=7) 'eaf4': generate_down_periods(start_date, end_date, 5, min_duration=30, max_duration=90)
} }
# Define EAF values for downtime periods # Define EAF values for downtime periods

@ -491,7 +491,6 @@ async def create_calculation_result_service(
total_cost = total_corrective_costs + overhaul_cost_points total_cost = total_corrective_costs + overhaul_cost_points
optimum_oh_index = np.argmin(total_cost) optimum_oh_index = np.argmin(total_cost)
raise Exception(optimum_oh_index)
numbers_of_failure = sum(total_daily_failures[:optimum_oh_index]) numbers_of_failure = sum(total_daily_failures[:optimum_oh_index])
optimum = OptimumResult( optimum = OptimumResult(

Loading…
Cancel
Save