From 02be614feb33cc37370b36e4cafbc6ecd0fc0b09 Mon Sep 17 00:00:00 2001 From: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:34:40 +0000 Subject: [PATCH] Issue.upgrade pvnet (#157) * only smooth wind with ruvnl * use pvnet 3.0.64 --- india_forecast_app/models/pvnet/model.py | 3 +-- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 7 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 diff --git a/poetry.lock b/poetry.lock index d7019b2..967065d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4462,13 +4462,13 @@ requests = "*" [[package]] name = "pvnet" -version = "3.0.52" +version = "3.0.64" description = "PVNet" optional = false python-versions = "*" files = [ - {file = "PVNet-3.0.52-py3-none-any.whl", hash = "sha256:d2fbfaa93950b608a605d0a0b09b059c5d752ab3a41489ac97f62df8b437daa5"}, - {file = "pvnet-3.0.52.tar.gz", hash = "sha256:40b727da937d1ff27e084a1a922aaca2045b8cf74cff6d5999e537cec070c8d5"}, + {file = "PVNet-3.0.64-py3-none-any.whl", hash = "sha256:17caa0866d934e8de9ddffddac87e05ec08eb5f74c416f1fa76bd8865adc39df"}, + {file = "pvnet-3.0.64.tar.gz", hash = "sha256:733f10cf98c70332f0128072f55d4354f93bfd437d8a9270ce698146d203d9f9"}, ] [package.dependencies] @@ -7017,4 +7017,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "3f3f60103d2147e8a9fcc33a5594323c12456f9ce10642cb1bd722e99578bc39" +content-hash = "ce3e5b7c5eb197d7e643996fe596b70ba281397e28acbfbe5f70df2f51f915dd" diff --git a/pyproject.toml b/pyproject.toml index 5e9d3b8..ad6d96a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"