From fade9f30194624a0303dc8e0511ac48c065a2ce6 Mon Sep 17 00:00:00 2001 From: Alexandra Udaltsova <43303448+AUdaltsova@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:37:37 +0100 Subject: [PATCH] linting --- scripts/backtest_sites.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/backtest_sites.py b/scripts/backtest_sites.py index 82128851..5cf0aeb9 100644 --- a/scripts/backtest_sites.py +++ b/scripts/backtest_sites.py @@ -111,7 +111,9 @@ @functional_datapipe("pad_forward_pv") class PadForwardPVIterDataPipe(IterDataPipe): """ - Pads forecast pv. Sun position is calculated based off of pv time index + Pads forecast pv. + + Sun position is calculated based off of pv time index and for t0's close to end of pv data can have wrong shape as pv starts to run out of data to slice for the forecast part. """ @@ -135,6 +137,10 @@ def __iter__(self): def load_model_from_hf(model_id: str, revision: str, token: str): + +""" +Loads model from HuggingFace +""" model_file = hf_hub_download( repo_id=model_id, filename=PYTORCH_WEIGHTS_NAME,