|
|
|
@ -132,7 +132,8 @@ async def plant_simulation_metrics(simulation_id: str, location_tag: str, max_in
|
|
|
|
monthly_data = analyze_monthly_metrics(time_series, last_oh_date)
|
|
|
|
monthly_data = analyze_monthly_metrics(time_series, last_oh_date)
|
|
|
|
|
|
|
|
|
|
|
|
return monthly_data
|
|
|
|
return monthly_data
|
|
|
|
def analyze_monthly_metrics(timestamp_outs, start_date, max_flow_rate: float = 600):
|
|
|
|
|
|
|
|
|
|
|
|
def analyze_monthly_metrics(timestamp_outs, start_date, max_flow_rate: float = 550):
|
|
|
|
if not timestamp_outs:
|
|
|
|
if not timestamp_outs:
|
|
|
|
return {}
|
|
|
|
return {}
|
|
|
|
|
|
|
|
|
|
|
|
|