Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 7, 2024
1 parent 91e26ad commit 8c00aab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def save_pretrained(
minimize_data_config(new_data_config_path, new_data_config_path, self)

# Get appropriate model card
model_name = huggingface_repo.split('/')[1]
if model_name == "windnet_india":
model_name = huggingface_repo.split("/")[1]
if model_name == "windnet_india":
model_card = "windnet_model_card_template.md"
elif model_name == "pvnet_india":
elif model_name == "pvnet_india":
model_card = "pvnet_india_model_card_template.md"
else:
model_card = "model_card_template.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Model Description

<!-- Provide a longer summary of what this model is/does. -->
This model class uses numerical weather prediction and recent wind power output to forecast the PV power in North West India over the next 48 hours. More information can be found in the model repo [1] and experimental notes [here](https://github.com/openclimatefix/PVNet/tree/main/experiments/india).
This model class uses numerical weather prediction and recent wind power output to forecast the PV power in North West India over the next 48 hours. More information can be found in the model repo [1] and experimental notes [here](https://github.com/openclimatefix/PVNet/tree/main/experiments/india).


- **Developed by:** openclimatefix
Expand Down
2 changes: 1 addition & 1 deletion pvnet/models/model_cards/windnet_model_card_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Model Description

<!-- Provide a longer summary of what this model is/does. -->
This model class uses numerical weather prediction and recent wind power output to forecast the wind power in North West India over the next 48 hours at 15 minute granularity. More information can be found in the model repo [1] and experimental notes [here](https://github.com/openclimatefix/PVNet/tree/main/experiments/india).
This model class uses numerical weather prediction and recent wind power output to forecast the wind power in North West India over the next 48 hours at 15 minute granularity. More information can be found in the model repo [1] and experimental notes [here](https://github.com/openclimatefix/PVNet/tree/main/experiments/india).


- **Developed by:** openclimatefix
Expand Down
2 changes: 1 addition & 1 deletion scripts/checkpoint_to_huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def push_to_huggingface(
checkpoint_dir_paths: list[str],
huggingface_repo: str = "openclimatefix/pvnet_uk_region", # or e.g. openclimatefix/windnet_india
huggingface_repo: str = "openclimatefix/pvnet_uk_region", # or e.g. openclimatefix/windnet_india
wandb_repo: str | None = "openclimatefix/pvnet2.1",
val_best: bool = True,
wandb_ids: list[str] | None = [],
Expand Down

0 comments on commit 8c00aab

Please sign in to comment.