Skip to content

Commit d13312e

Browse files
dfuluBumpVersion Action
and
BumpVersion Action
authored
Update from main (#278)
* Bug fixes (#259) * model checkpoint bug fixes * Bump version: 3.0.63 → 3.0.64 [skip ci] --------- Co-authored-by: BumpVersion Action <bumpversion@github-actions>
1 parent 12dc2bf commit d13312e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
22
commit = True
33
tag = True
4-
current_version = 3.0.63
4+
current_version = 3.0.64
55
message = Bump version: {current_version} → {new_version} [skip ci]
66

77
[bumpversion:file:pvnet/__init__.py]

pvnet/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""PVNet"""
2-
__version__ = "3.0.63"
2+
__version__ = "3.0.64"

pvnet/models/base_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def minimize_data_config(input_path, output_path, model):
9494
if not model.include_nwp:
9595
del config["input_data"]["nwp"]
9696
else:
97-
for nwp_source in config["input_data"]["nwp"].keys():
97+
for nwp_source in list(config["input_data"]["nwp"].keys()):
9898
nwp_config = config["input_data"]["nwp"][nwp_source]
9999

100100
if nwp_source not in model.nwp_encoders_dict:

scripts/checkpoint_to_huggingface.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
use:
44
python checkpoint_to_huggingface.py "path/to/model/checkpoints" \
5-
--huggingface_repo="openclimatefix/pvnet_uk_region" \
6-
--wandb_repo="openclimatefix/pvnet2.1"" \
5+
--huggingface-repo="openclimatefix/pvnet_uk_region" \
6+
--wandb-repo="openclimatefix/pvnet2.1" \
77
--local-path="~/tmp/this_model" \
88
--no-push-to-hub
99
"""
@@ -19,10 +19,10 @@
1919
def push_to_huggingface(
2020
checkpoint_dir_paths: list[str],
2121
huggingface_repo: str = "openclimatefix/pvnet_uk_region", # e.g. openclimatefix/windnet_india
22-
wandb_repo: str | None = "openclimatefix/pvnet2.1",
22+
wandb_repo: str = "openclimatefix/pvnet2.1",
2323
val_best: bool = True,
24-
wandb_ids: list[str] | None = [],
25-
local_path: str | None = None,
24+
wandb_ids: list[str] = [],
25+
local_path: str = None,
2626
push_to_hub: bool = True,
2727
):
2828
"""Push a local model to a huggingface model repo

0 commit comments

Comments
 (0)