Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AUdaltsova authored Oct 18, 2024
1 parent b927f48 commit fade9f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/backtest_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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,
Expand Down

0 comments on commit fade9f3

Please sign in to comment.