From 18e43b2515618118b7625370367f1931da99b037 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Wed, 18 Dec 2024 13:00:23 +0000 Subject: [PATCH] only smooth wind with ruvnl --- india_forecast_app/models/pvnet/model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/india_forecast_app/models/pvnet/model.py b/india_forecast_app/models/pvnet/model.py index 2701a11..6a1e38a 100644 --- a/india_forecast_app/models/pvnet/model.py +++ b/india_forecast_app/models/pvnet/model.py @@ -133,7 +133,7 @@ def predict(self, site_id: str, timestamp: dt.datetime): ] ) - if self.asset_type == "wind": + if self.asset_type == "wind" and self.client == "ruvnl": log.info("Feathering the forecast to the lastest value of generation") @@ -186,7 +186,6 @@ def predict(self, site_id: str, timestamp: dt.datetime): ) * smooth_values[final_gen_index + idx] log.debug(f"New values are {values_df['forecast_power_kw']}") - if self.asset_type == "wind": # Smooth with a 1 hour rolling window # Only smooth the wind else we introduce too much of a lag in the solar # going up and down throughout the day