PVNet 3.0.28__tar.gz → 3.0.30__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.
Files changed (52) hide show
  1. {pvnet-3.0.28 → pvnet-3.0.30}/PKG-INFO +1 -1
  2. {pvnet-3.0.28 → pvnet-3.0.30}/PVNet.egg-info/PKG-INFO +1 -1
  3. pvnet-3.0.30/pvnet/__init__.py +2 -0
  4. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/data/pv_site_datamodule.py +12 -3
  5. pvnet-3.0.28/pvnet/__init__.py +0 -2
  6. {pvnet-3.0.28 → pvnet-3.0.30}/LICENSE +0 -0
  7. {pvnet-3.0.28 → pvnet-3.0.30}/MANIFEST.in +0 -0
  8. {pvnet-3.0.28 → pvnet-3.0.30}/PVNet.egg-info/SOURCES.txt +0 -0
  9. {pvnet-3.0.28 → pvnet-3.0.30}/PVNet.egg-info/dependency_links.txt +0 -0
  10. {pvnet-3.0.28 → pvnet-3.0.30}/PVNet.egg-info/requires.txt +0 -0
  11. {pvnet-3.0.28 → pvnet-3.0.30}/PVNet.egg-info/top_level.txt +0 -0
  12. {pvnet-3.0.28 → pvnet-3.0.30}/README.md +0 -0
  13. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/callbacks.py +0 -0
  14. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/data/__init__.py +0 -0
  15. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/data/base.py +0 -0
  16. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/data/datamodule.py +0 -0
  17. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/data/utils.py +0 -0
  18. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/data/wind_datamodule.py +0 -0
  19. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/__init__.py +0 -0
  20. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/base_model.py +0 -0
  21. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/baseline/__init__.py +0 -0
  22. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/baseline/last_value.py +0 -0
  23. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/baseline/single_value.py +0 -0
  24. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/ensemble.py +0 -0
  25. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/__init__.py +0 -0
  26. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/basic_blocks.py +0 -0
  27. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/encoders/__init__.py +0 -0
  28. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
  29. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
  30. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
  31. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
  32. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
  33. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
  34. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
  35. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/multimodal.py +0 -0
  36. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/multimodal_base.py +0 -0
  37. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
  38. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
  39. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
  40. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
  41. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/models/utils.py +0 -0
  42. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/optimizers.py +0 -0
  43. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/training.py +0 -0
  44. {pvnet-3.0.28 → pvnet-3.0.30}/pvnet/utils.py +0 -0
  45. {pvnet-3.0.28 → pvnet-3.0.30}/pyproject.toml +0 -0
  46. {pvnet-3.0.28 → pvnet-3.0.30}/requirements-dev.txt +0 -0
  47. {pvnet-3.0.28 → pvnet-3.0.30}/requirements.txt +0 -0
  48. {pvnet-3.0.28 → pvnet-3.0.30}/setup.cfg +0 -0
  49. {pvnet-3.0.28 → pvnet-3.0.30}/setup.py +0 -0
  50. {pvnet-3.0.28 → pvnet-3.0.30}/tests/__init__.py +0 -0
  51. {pvnet-3.0.28 → pvnet-3.0.30}/tests/conftest.py +0 -0
  52. {pvnet-3.0.28 → pvnet-3.0.30}/tests/test_end2end.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PVNet
3
- Version: 3.0.28
3
+ Version: 3.0.30
4
4
  Summary: PVNet
5
5
  Author: Peter Dudfield
6
6
  Author-email: info@openclimatefix.org
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PVNet
3
- Version: 3.0.28
3
+ Version: 3.0.30
4
4
  Summary: PVNet
5
5
  Author: Peter Dudfield
6
6
  Author-email: info@openclimatefix.org
@@ -0,0 +1,2 @@
1
+ """PVNet"""
2
+ __version__ = "3.0.30"
@@ -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 pvnet_site_netcdf_datapipe
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 = pvnet_site_netcdf_datapipe(
15
- keys=["pv", "nwp"],
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)
@@ -1,2 +0,0 @@
1
- """PVNet"""
2
- __version__ = "3.0.28"
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