PVNet 3.0.28__tar.gz → 3.0.29__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-3.0.28 → pvnet-3.0.29}/PKG-INFO +1 -1
- {pvnet-3.0.28 → pvnet-3.0.29}/PVNet.egg-info/PKG-INFO +1 -1
- pvnet-3.0.29/pvnet/__init__.py +2 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/data/pv_site_datamodule.py +12 -3
- pvnet-3.0.28/pvnet/__init__.py +0 -2
- {pvnet-3.0.28 → pvnet-3.0.29}/LICENSE +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/MANIFEST.in +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/PVNet.egg-info/requires.txt +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/README.md +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/callbacks.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/data/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/data/base.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/data/datamodule.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/data/utils.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/data/wind_datamodule.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/base_model.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/baseline/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/baseline/last_value.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/baseline/single_value.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/ensemble.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/basic_blocks.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/encoders/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/multimodal.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/multimodal_base.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/models/utils.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/optimizers.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/training.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pvnet/utils.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/pyproject.toml +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/requirements-dev.txt +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/requirements.txt +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/setup.cfg +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/setup.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/tests/__init__.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/tests/conftest.py +0 -0
- {pvnet-3.0.28 → pvnet-3.0.29}/tests/test_end2end.py +0 -0
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import glob
|
|
3
3
|
|
|
4
4
|
from ocf_datapipes.batch import BatchKey, batch_to_tensor, stack_np_examples_into_batch
|
|
5
|
-
from ocf_datapipes.training.pvnet_site import
|
|
5
|
+
from ocf_datapipes.training.pvnet_site import (
|
|
6
|
+
pvnet_site_datapipe,
|
|
7
|
+
pvnet_site_netcdf_datapipe,
|
|
8
|
+
split_dataset_dict_dp,
|
|
9
|
+
uncombine_from_single_dataset,
|
|
10
|
+
)
|
|
6
11
|
|
|
7
12
|
from pvnet.data.base import BaseDataModule
|
|
8
13
|
|
|
@@ -11,9 +16,13 @@ class PVSiteDataModule(BaseDataModule):
|
|
|
11
16
|
"""Datamodule for training pvnet site and using pvnet site pipeline in `ocf_datapipes`."""
|
|
12
17
|
|
|
13
18
|
def _get_datapipe(self, start_time, end_time):
|
|
14
|
-
data_pipeline =
|
|
15
|
-
|
|
19
|
+
data_pipeline = pvnet_site_datapipe(
|
|
20
|
+
self.configuration,
|
|
21
|
+
start_time=start_time,
|
|
22
|
+
end_time=end_time,
|
|
16
23
|
)
|
|
24
|
+
data_pipeline = data_pipeline.map(uncombine_from_single_dataset).map(split_dataset_dict_dp)
|
|
25
|
+
data_pipeline = data_pipeline.pvnet_site_convert_to_numpy_batch()
|
|
17
26
|
|
|
18
27
|
data_pipeline = (
|
|
19
28
|
data_pipeline.batch(self.batch_size)
|
pvnet-3.0.28/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|