PVNet 4.0.10__tar.gz → 4.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pvnet-4.0.10 → pvnet-4.1.0}/PKG-INFO +3 -9
- {pvnet-4.0.10 → pvnet-4.1.0}/PVNet.egg-info/PKG-INFO +3 -9
- {pvnet-4.0.10 → pvnet-4.1.0}/PVNet.egg-info/requires.txt +2 -8
- pvnet-4.1.0/pvnet/__init__.py +2 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/data/base_datamodule.py +1 -1
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/data/site_datamodule.py +1 -1
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/data/uk_regional_datamodule.py +1 -1
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/base_model.py +1 -1
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/training.py +2 -1
- {pvnet-4.0.10 → pvnet-4.1.0}/pyproject.toml +2 -8
- pvnet-4.0.10/pvnet/__init__.py +0 -2
- {pvnet-4.0.10 → pvnet-4.1.0}/LICENSE +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/MANIFEST.in +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/README.md +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/callbacks.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/data/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/load_model.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/baseline/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/baseline/last_value.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/baseline/single_value.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/ensemble.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/model_cards/pv_india_model_card_template.md +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/model_cards/pv_uk_regional_model_card_template.md +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/model_cards/wind_india_model_card_template.md +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/basic_blocks.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/encoders/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/multimodal.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/multimodal_base.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/models/utils.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/optimizers.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/pvnet/utils.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/setup.cfg +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/tests/test_end2end.py +0 -0
- {pvnet-4.0.10 → pvnet-4.1.0}/tests/test_utils.py +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PVNet
|
|
3
|
-
Version: 4.0
|
|
3
|
+
Version: 4.1.0
|
|
4
4
|
Summary: PVNet
|
|
5
5
|
Author-email: Peter Dudfield <info@openclimatefix.org>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
License-File: LICENSE
|
|
8
|
-
Requires-Dist: ocf-data-sampler
|
|
9
|
-
Requires-Dist: ocf_datapipes>=3.3.34
|
|
10
|
-
Requires-Dist: ocf_ml_metrics>=0.0.11
|
|
8
|
+
Requires-Dist: ocf-data-sampler>=0.2.10
|
|
11
9
|
Requires-Dist: numpy
|
|
12
10
|
Requires-Dist: pandas
|
|
13
11
|
Requires-Dist: matplotlib
|
|
14
12
|
Requires-Dist: xarray
|
|
15
|
-
Requires-Dist: ipykernel
|
|
16
13
|
Requires-Dist: h5netcdf
|
|
17
14
|
Requires-Dist: torch>=2.0.0
|
|
18
15
|
Requires-Dist: lightning
|
|
@@ -24,14 +21,11 @@ Requires-Dist: sqlalchemy
|
|
|
24
21
|
Requires-Dist: fsspec[s3]
|
|
25
22
|
Requires-Dist: wandb
|
|
26
23
|
Requires-Dist: huggingface-hub
|
|
27
|
-
Requires-Dist: tensorboard
|
|
28
24
|
Requires-Dist: tqdm
|
|
29
25
|
Requires-Dist: omegaconf
|
|
30
26
|
Requires-Dist: hydra-core
|
|
31
|
-
Requires-Dist: python-dotenv
|
|
32
|
-
Requires-Dist: hydra-optuna-sweeper
|
|
33
27
|
Requires-Dist: rich
|
|
34
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: einops
|
|
35
29
|
Provides-Extra: dev
|
|
36
30
|
Requires-Dist: pvlive-api; extra == "dev"
|
|
37
31
|
Requires-Dist: ruff; extra == "dev"
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PVNet
|
|
3
|
-
Version: 4.0
|
|
3
|
+
Version: 4.1.0
|
|
4
4
|
Summary: PVNet
|
|
5
5
|
Author-email: Peter Dudfield <info@openclimatefix.org>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
License-File: LICENSE
|
|
8
|
-
Requires-Dist: ocf-data-sampler
|
|
9
|
-
Requires-Dist: ocf_datapipes>=3.3.34
|
|
10
|
-
Requires-Dist: ocf_ml_metrics>=0.0.11
|
|
8
|
+
Requires-Dist: ocf-data-sampler>=0.2.10
|
|
11
9
|
Requires-Dist: numpy
|
|
12
10
|
Requires-Dist: pandas
|
|
13
11
|
Requires-Dist: matplotlib
|
|
14
12
|
Requires-Dist: xarray
|
|
15
|
-
Requires-Dist: ipykernel
|
|
16
13
|
Requires-Dist: h5netcdf
|
|
17
14
|
Requires-Dist: torch>=2.0.0
|
|
18
15
|
Requires-Dist: lightning
|
|
@@ -24,14 +21,11 @@ Requires-Dist: sqlalchemy
|
|
|
24
21
|
Requires-Dist: fsspec[s3]
|
|
25
22
|
Requires-Dist: wandb
|
|
26
23
|
Requires-Dist: huggingface-hub
|
|
27
|
-
Requires-Dist: tensorboard
|
|
28
24
|
Requires-Dist: tqdm
|
|
29
25
|
Requires-Dist: omegaconf
|
|
30
26
|
Requires-Dist: hydra-core
|
|
31
|
-
Requires-Dist: python-dotenv
|
|
32
|
-
Requires-Dist: hydra-optuna-sweeper
|
|
33
27
|
Requires-Dist: rich
|
|
34
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: einops
|
|
35
29
|
Provides-Extra: dev
|
|
36
30
|
Requires-Dist: pvlive-api; extra == "dev"
|
|
37
31
|
Requires-Dist: ruff; extra == "dev"
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
ocf-data-sampler
|
|
2
|
-
ocf_datapipes>=3.3.34
|
|
3
|
-
ocf_ml_metrics>=0.0.11
|
|
1
|
+
ocf-data-sampler>=0.2.10
|
|
4
2
|
numpy
|
|
5
3
|
pandas
|
|
6
4
|
matplotlib
|
|
7
5
|
xarray
|
|
8
|
-
ipykernel
|
|
9
6
|
h5netcdf
|
|
10
7
|
torch>=2.0.0
|
|
11
8
|
lightning
|
|
@@ -17,14 +14,11 @@ sqlalchemy
|
|
|
17
14
|
fsspec[s3]
|
|
18
15
|
wandb
|
|
19
16
|
huggingface-hub
|
|
20
|
-
tensorboard
|
|
21
17
|
tqdm
|
|
22
18
|
omegaconf
|
|
23
19
|
hydra-core
|
|
24
|
-
python-dotenv
|
|
25
|
-
hydra-optuna-sweeper
|
|
26
20
|
rich
|
|
27
|
-
|
|
21
|
+
einops
|
|
28
22
|
|
|
29
23
|
[all]
|
|
30
24
|
PVNet[all_models,dev]
|
|
@@ -4,7 +4,7 @@ from glob import glob
|
|
|
4
4
|
|
|
5
5
|
from lightning.pytorch import LightningDataModule
|
|
6
6
|
from ocf_data_sampler.numpy_sample.collate import stack_np_samples_into_batch
|
|
7
|
-
from ocf_data_sampler.sample.base import (
|
|
7
|
+
from ocf_data_sampler.torch_datasets.sample.base import (
|
|
8
8
|
NumpyBatch,
|
|
9
9
|
SampleBase,
|
|
10
10
|
TensorBatch,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
""" Data module for pytorch lightning """
|
|
2
2
|
|
|
3
|
-
from ocf_data_sampler.sample.site import SiteSample
|
|
4
3
|
from ocf_data_sampler.torch_datasets.datasets.site import SitesDataset
|
|
4
|
+
from ocf_data_sampler.torch_datasets.sample.site import SiteSample
|
|
5
5
|
from torch.utils.data import Dataset
|
|
6
6
|
|
|
7
7
|
from pvnet.data.base_datamodule import BaseDataModule, PremadeSamplesDataset
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
""" Data module for pytorch lightning """
|
|
2
2
|
|
|
3
|
-
from ocf_data_sampler.sample.uk_regional import UKRegionalSample
|
|
4
3
|
from ocf_data_sampler.torch_datasets.datasets.pvnet_uk import PVNetUKRegionalDataset
|
|
4
|
+
from ocf_data_sampler.torch_datasets.sample.uk_regional import UKRegionalSample
|
|
5
5
|
from torch.utils.data import Dataset
|
|
6
6
|
|
|
7
7
|
from pvnet.data.base_datamodule import BaseDataModule, PremadeSamplesDataset
|
|
@@ -20,7 +20,7 @@ from huggingface_hub import ModelCard, ModelCardData, PyTorchModelHubMixin
|
|
|
20
20
|
from huggingface_hub.constants import CONFIG_NAME, PYTORCH_WEIGHTS_NAME
|
|
21
21
|
from huggingface_hub.file_download import hf_hub_download
|
|
22
22
|
from huggingface_hub.hf_api import HfApi
|
|
23
|
-
from ocf_data_sampler.sample.base import copy_batch_to_device
|
|
23
|
+
from ocf_data_sampler.torch_datasets.sample.base import copy_batch_to_device
|
|
24
24
|
|
|
25
25
|
from pvnet.models.utils import (
|
|
26
26
|
BatchAccumulator,
|
|
@@ -145,10 +145,11 @@ def train(config: DictConfig) -> Optional[float]:
|
|
|
145
145
|
callbacks=callbacks,
|
|
146
146
|
)
|
|
147
147
|
|
|
148
|
+
# TODO: remove this option
|
|
148
149
|
if should_pretrain:
|
|
149
150
|
# Pre-train the model
|
|
150
151
|
raise NotImplementedError("Pre-training is not yet supported")
|
|
151
|
-
# The parameter `block_nwp_and_sat`
|
|
152
|
+
# The parameter `block_nwp_and_sat` is not available in data-sampler
|
|
152
153
|
# If pretraining is re-supported in the future it is likely any pre-training logic should
|
|
153
154
|
# go here or perhaps in the callbacks
|
|
154
155
|
# datamodule.block_nwp_and_sat = True
|
|
@@ -6,14 +6,11 @@ dynamic = ["version", "readme"]
|
|
|
6
6
|
license={file="LICENCE"}
|
|
7
7
|
|
|
8
8
|
dependencies = [
|
|
9
|
-
"ocf-data-sampler
|
|
10
|
-
"ocf_datapipes>=3.3.34",
|
|
11
|
-
"ocf_ml_metrics>=0.0.11",
|
|
9
|
+
"ocf-data-sampler>=0.2.10",
|
|
12
10
|
"numpy",
|
|
13
11
|
"pandas",
|
|
14
12
|
"matplotlib",
|
|
15
13
|
"xarray",
|
|
16
|
-
"ipykernel",
|
|
17
14
|
"h5netcdf",
|
|
18
15
|
"torch>=2.0.0",
|
|
19
16
|
"lightning",
|
|
@@ -25,14 +22,11 @@ dependencies = [
|
|
|
25
22
|
"fsspec[s3]",
|
|
26
23
|
"wandb",
|
|
27
24
|
"huggingface-hub",
|
|
28
|
-
"tensorboard",
|
|
29
25
|
"tqdm",
|
|
30
26
|
"omegaconf",
|
|
31
27
|
"hydra-core",
|
|
32
|
-
"python-dotenv",
|
|
33
|
-
"hydra-optuna-sweeper",
|
|
34
28
|
"rich",
|
|
35
|
-
"
|
|
29
|
+
"einops",
|
|
36
30
|
]
|
|
37
31
|
|
|
38
32
|
[tool.setuptools.dynamic]
|
pvnet-4.0.10/pvnet/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|