Skip to content

Commit

Permalink
only smooth wind with ruvnl
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 18, 2024
1 parent e3cfec2 commit 18e43b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions india_forecast_app/models/pvnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 18e43b2

Please sign in to comment.