Skip to content

Commit

Permalink
Issue.upgrade pvnet (#157)
Browse files Browse the repository at this point in the history
* only smooth wind with ruvnl

* use pvnet 3.0.64
  • Loading branch information
peterdudfield authored Dec 18, 2024
1 parent e3cfec2 commit 02be614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python = "^3.11"
click = "^8.1.7"
pvsite-datamodel = "^1.0.34"
pandas = "1.5.3"
pvnet = "3.0.52"
pvnet = "3.0.64"
pytz = "^2024.1"
numpy = "^1.26.4"
huggingface-hub = "0.20.3"
Expand Down

0 comments on commit 02be614

Please sign in to comment.