PVNet 4.0.0__tar.gz → 4.0.1__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 (50) hide show
  1. {pvnet-4.0.0 → pvnet-4.0.1}/PKG-INFO +10 -12
  2. {pvnet-4.0.0 → pvnet-4.0.1}/PVNet.egg-info/PKG-INFO +10 -12
  3. {pvnet-4.0.0 → pvnet-4.0.1}/README.md +9 -11
  4. pvnet-4.0.1/pvnet/__init__.py +2 -0
  5. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/data/site_datamodule.py +1 -1
  6. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/data/uk_regional_datamodule.py +2 -2
  7. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/base_model.py +3 -3
  8. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/model_cards/pv_india_model_card_template.md +2 -2
  9. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/model_cards/pv_uk_regional_model_card_template.md +2 -2
  10. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/model_cards/wind_india_model_card_template.md +2 -2
  11. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/site_encoders/encoders.py +0 -1
  12. {pvnet-4.0.0 → pvnet-4.0.1}/tests/test_utils.py +1 -1
  13. pvnet-4.0.0/pvnet/__init__.py +0 -2
  14. {pvnet-4.0.0 → pvnet-4.0.1}/LICENSE +0 -0
  15. {pvnet-4.0.0 → pvnet-4.0.1}/MANIFEST.in +0 -0
  16. {pvnet-4.0.0 → pvnet-4.0.1}/PVNet.egg-info/SOURCES.txt +0 -0
  17. {pvnet-4.0.0 → pvnet-4.0.1}/PVNet.egg-info/dependency_links.txt +0 -0
  18. {pvnet-4.0.0 → pvnet-4.0.1}/PVNet.egg-info/requires.txt +0 -0
  19. {pvnet-4.0.0 → pvnet-4.0.1}/PVNet.egg-info/top_level.txt +0 -0
  20. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/callbacks.py +0 -0
  21. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/data/__init__.py +0 -0
  22. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/data/base_datamodule.py +0 -0
  23. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/load_model.py +0 -0
  24. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/__init__.py +0 -0
  25. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/baseline/__init__.py +0 -0
  26. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/baseline/last_value.py +0 -0
  27. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/baseline/single_value.py +0 -0
  28. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/ensemble.py +0 -0
  29. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/__init__.py +0 -0
  30. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/basic_blocks.py +0 -0
  31. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/encoders/__init__.py +0 -0
  32. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
  33. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
  34. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
  35. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
  36. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
  37. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
  38. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
  39. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/multimodal.py +0 -0
  40. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/multimodal_base.py +0 -0
  41. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
  42. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
  43. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
  44. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/models/utils.py +0 -0
  45. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/optimizers.py +0 -0
  46. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/training.py +0 -0
  47. {pvnet-4.0.0 → pvnet-4.0.1}/pvnet/utils.py +0 -0
  48. {pvnet-4.0.0 → pvnet-4.0.1}/pyproject.toml +0 -0
  49. {pvnet-4.0.0 → pvnet-4.0.1}/setup.cfg +0 -0
  50. {pvnet-4.0.0 → pvnet-4.0.1}/tests/test_end2end.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PVNet
3
- Version: 4.0.0
3
+ Version: 4.0.1
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Description-Content-Type: text/markdown
@@ -138,31 +138,29 @@ OCF maintains a Zarr formatted version of the German Weather Service's (DWD)
138
138
  ICON-EU NWP model here:
139
139
  https://huggingface.co/datasets/openclimatefix/dwd-icon-eu which includes the UK
140
140
 
141
- Please note that the current version of [ICON loader]([url](https://github.com/openclimatefix/ocf_datapipes/blob/9ec252eeee44937c12ab52699579bdcace76e72f/ocf_datapipes/load/nwp/providers/icon.py#L9-L30)) supports a different format. If you want to use our ICON-EU dataset or your own NWP source, you can create a loader for it using [the instructions here]([url](https://github.com/openclimatefix/ocf_datapipes/tree/main/ocf_datapipes/load#nwp)).
142
-
143
141
  **PV**\
144
142
  OCF maintains a dataset of PV generation from 1311 private PV installations
145
143
  here: https://huggingface.co/datasets/openclimatefix/uk_pv
146
144
 
147
145
 
148
- ### Connecting with ocf_datapipes for batch creation
146
+ ### Connecting with ocf-data-sampler for batch creation
149
147
 
150
- Outside the PVNet repo, clone the ocf-datapipes repo and exit the conda env created for PVNet: https://github.com/openclimatefix/ocf_datapipes
148
+ Outside the PVNet repo, clone the ocf-data-sampler repo and exit the conda env created for PVNet: https://github.com/openclimatefix/ocf-data-sampler
151
149
  ```bash
152
- git clone --depth 1 https://github.com/openclimatefix/ocf_datapipes.git
153
- conda create -n ocf_datapipes python=3.10
150
+ git clone --depth 1 https://github.com/openclimatefix/ocf-data-sampler.git
151
+ conda create -n ocf-data-sampler python=3.11
154
152
  ```
155
153
 
156
- Then go inside the ocf_datapipes repo to add packages
154
+ Then go inside the ocf-data-sampler repo to add packages
157
155
 
158
156
  ```bash
159
- pip install -r requirements.txt -r requirements-dev.txt
157
+ pip install .
160
158
  ```
161
159
 
162
- Then exit this environment, and enter back into the pvnet conda environment and install ocf_datapies in editable mode (-e). This means the package is directly linked to the source code in the ocf_datapies repo.
160
+ Then exit this environment, and enter back into the pvnet conda environment and install ocf-data-sampler in editable mode (-e). This means the package is directly linked to the source code in the ocf-data-sampler repo.
163
161
 
164
162
  ```bash
165
- pip install -e <PATH-TO-ocf_datapipes-REPO>
163
+ pip install -e <PATH-TO-ocf-data-sampler-REPO>
166
164
  ```
167
165
 
168
166
  ## Generating pre-made batches of data for training/validation of PVNet
@@ -234,7 +232,7 @@ satellite:
234
232
  - "gs://public-datasets-eumetsat-solar-forecasting/satellite/EUMETSAT/SEVIRI_RSS/v4/2021_nonhrv.zarr"
235
233
  ```
236
234
 
237
- Datapipes are currently set up to use 11 channels from the satellite data, the 12th of which is HRV and is not included in these.
235
+ ocf-data-sampler is currently set up to use 11 channels from the satellite data, the 12th of which is HRV and is not included in these.
238
236
 
239
237
 
240
238
  ### Training PVNet
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PVNet
3
- Version: 4.0.0
3
+ Version: 4.0.1
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Description-Content-Type: text/markdown
@@ -138,31 +138,29 @@ OCF maintains a Zarr formatted version of the German Weather Service's (DWD)
138
138
  ICON-EU NWP model here:
139
139
  https://huggingface.co/datasets/openclimatefix/dwd-icon-eu which includes the UK
140
140
 
141
- Please note that the current version of [ICON loader]([url](https://github.com/openclimatefix/ocf_datapipes/blob/9ec252eeee44937c12ab52699579bdcace76e72f/ocf_datapipes/load/nwp/providers/icon.py#L9-L30)) supports a different format. If you want to use our ICON-EU dataset or your own NWP source, you can create a loader for it using [the instructions here]([url](https://github.com/openclimatefix/ocf_datapipes/tree/main/ocf_datapipes/load#nwp)).
142
-
143
141
  **PV**\
144
142
  OCF maintains a dataset of PV generation from 1311 private PV installations
145
143
  here: https://huggingface.co/datasets/openclimatefix/uk_pv
146
144
 
147
145
 
148
- ### Connecting with ocf_datapipes for batch creation
146
+ ### Connecting with ocf-data-sampler for batch creation
149
147
 
150
- Outside the PVNet repo, clone the ocf-datapipes repo and exit the conda env created for PVNet: https://github.com/openclimatefix/ocf_datapipes
148
+ Outside the PVNet repo, clone the ocf-data-sampler repo and exit the conda env created for PVNet: https://github.com/openclimatefix/ocf-data-sampler
151
149
  ```bash
152
- git clone --depth 1 https://github.com/openclimatefix/ocf_datapipes.git
153
- conda create -n ocf_datapipes python=3.10
150
+ git clone --depth 1 https://github.com/openclimatefix/ocf-data-sampler.git
151
+ conda create -n ocf-data-sampler python=3.11
154
152
  ```
155
153
 
156
- Then go inside the ocf_datapipes repo to add packages
154
+ Then go inside the ocf-data-sampler repo to add packages
157
155
 
158
156
  ```bash
159
- pip install -r requirements.txt -r requirements-dev.txt
157
+ pip install .
160
158
  ```
161
159
 
162
- Then exit this environment, and enter back into the pvnet conda environment and install ocf_datapies in editable mode (-e). This means the package is directly linked to the source code in the ocf_datapies repo.
160
+ Then exit this environment, and enter back into the pvnet conda environment and install ocf-data-sampler in editable mode (-e). This means the package is directly linked to the source code in the ocf-data-sampler repo.
163
161
 
164
162
  ```bash
165
- pip install -e <PATH-TO-ocf_datapipes-REPO>
163
+ pip install -e <PATH-TO-ocf-data-sampler-REPO>
166
164
  ```
167
165
 
168
166
  ## Generating pre-made batches of data for training/validation of PVNet
@@ -234,7 +232,7 @@ satellite:
234
232
  - "gs://public-datasets-eumetsat-solar-forecasting/satellite/EUMETSAT/SEVIRI_RSS/v4/2021_nonhrv.zarr"
235
233
  ```
236
234
 
237
- Datapipes are currently set up to use 11 channels from the satellite data, the 12th of which is HRV and is not included in these.
235
+ ocf-data-sampler is currently set up to use 11 channels from the satellite data, the 12th of which is HRV and is not included in these.
238
236
 
239
237
 
240
238
  ### Training PVNet
@@ -89,31 +89,29 @@ OCF maintains a Zarr formatted version of the German Weather Service's (DWD)
89
89
  ICON-EU NWP model here:
90
90
  https://huggingface.co/datasets/openclimatefix/dwd-icon-eu which includes the UK
91
91
 
92
- Please note that the current version of [ICON loader]([url](https://github.com/openclimatefix/ocf_datapipes/blob/9ec252eeee44937c12ab52699579bdcace76e72f/ocf_datapipes/load/nwp/providers/icon.py#L9-L30)) supports a different format. If you want to use our ICON-EU dataset or your own NWP source, you can create a loader for it using [the instructions here]([url](https://github.com/openclimatefix/ocf_datapipes/tree/main/ocf_datapipes/load#nwp)).
93
-
94
92
  **PV**\
95
93
  OCF maintains a dataset of PV generation from 1311 private PV installations
96
94
  here: https://huggingface.co/datasets/openclimatefix/uk_pv
97
95
 
98
96
 
99
- ### Connecting with ocf_datapipes for batch creation
97
+ ### Connecting with ocf-data-sampler for batch creation
100
98
 
101
- Outside the PVNet repo, clone the ocf-datapipes repo and exit the conda env created for PVNet: https://github.com/openclimatefix/ocf_datapipes
99
+ Outside the PVNet repo, clone the ocf-data-sampler repo and exit the conda env created for PVNet: https://github.com/openclimatefix/ocf-data-sampler
102
100
  ```bash
103
- git clone --depth 1 https://github.com/openclimatefix/ocf_datapipes.git
104
- conda create -n ocf_datapipes python=3.10
101
+ git clone --depth 1 https://github.com/openclimatefix/ocf-data-sampler.git
102
+ conda create -n ocf-data-sampler python=3.11
105
103
  ```
106
104
 
107
- Then go inside the ocf_datapipes repo to add packages
105
+ Then go inside the ocf-data-sampler repo to add packages
108
106
 
109
107
  ```bash
110
- pip install -r requirements.txt -r requirements-dev.txt
108
+ pip install .
111
109
  ```
112
110
 
113
- Then exit this environment, and enter back into the pvnet conda environment and install ocf_datapies in editable mode (-e). This means the package is directly linked to the source code in the ocf_datapies repo.
111
+ Then exit this environment, and enter back into the pvnet conda environment and install ocf-data-sampler in editable mode (-e). This means the package is directly linked to the source code in the ocf-data-sampler repo.
114
112
 
115
113
  ```bash
116
- pip install -e <PATH-TO-ocf_datapipes-REPO>
114
+ pip install -e <PATH-TO-ocf-data-sampler-REPO>
117
115
  ```
118
116
 
119
117
  ## Generating pre-made batches of data for training/validation of PVNet
@@ -185,7 +183,7 @@ satellite:
185
183
  - "gs://public-datasets-eumetsat-solar-forecasting/satellite/EUMETSAT/SEVIRI_RSS/v4/2021_nonhrv.zarr"
186
184
  ```
187
185
 
188
- Datapipes are currently set up to use 11 channels from the satellite data, the 12th of which is HRV and is not included in these.
186
+ ocf-data-sampler is currently set up to use 11 channels from the satellite data, the 12th of which is HRV and is not included in these.
189
187
 
190
188
 
191
189
  ### Training PVNet
@@ -0,0 +1,2 @@
1
+ """PVNet"""
2
+ __version__ = "4.0.1"
@@ -25,7 +25,7 @@ class SiteDataModule(BaseDataModule):
25
25
  Can also be used with pre-made batches if `sample_dir` is set.
26
26
 
27
27
  Args:
28
- configuration: Path to datapipe configuration file.
28
+ configuration: Path to configuration file.
29
29
  sample_dir: Path to the directory of pre-saved samples. Cannot be used together with
30
30
  `configuration` or '[train/val]_period'.
31
31
  batch_size: Batch size.
@@ -8,7 +8,7 @@ from pvnet.data.base_datamodule import BaseDataModule, PremadeSamplesDataset
8
8
 
9
9
 
10
10
  class DataModule(BaseDataModule):
11
- """Datamodule for training pvnet and using pvnet pipeline in `ocf_datapipes`."""
11
+ """Datamodule for training pvnet and using pvnet pipeline in `ocf-data-sampler`."""
12
12
 
13
13
  def __init__(
14
14
  self,
@@ -25,7 +25,7 @@ class DataModule(BaseDataModule):
25
25
  Can also be used with pre-made batches if `sample_dir` is set.
26
26
 
27
27
  Args:
28
- configuration: Path to datapipe configuration file.
28
+ configuration: Path to configuration file.
29
29
  sample_dir: Path to the directory of pre-saved samples. Cannot be used together with
30
30
  `configuration` or '[train/val]_period'.
31
31
  batch_size: Batch size.
@@ -42,7 +42,7 @@ def make_clean_data_config(input_path, output_path, placeholder="PLACEHOLDER"):
42
42
  """Resave the data config and replace the filepaths with a placeholder.
43
43
 
44
44
  Args:
45
- input_path: Path to input datapipes configuration file
45
+ input_path: Path to input configuration file
46
46
  output_path: Location to save the output configuration file
47
47
  placeholder: String placeholder for data sources
48
48
  """
@@ -81,7 +81,7 @@ def minimize_data_config(input_path, output_path, model):
81
81
  """Strip out parts of the data config which aren't used by the model
82
82
 
83
83
  Args:
84
- input_path: Path to input datapipes configuration file
84
+ input_path: Path to input configuration file
85
85
  output_path: Location to save the output configuration file
86
86
  model: The PVNet model object
87
87
  """
@@ -286,7 +286,7 @@ class PVNetModelHubMixin(PyTorchModelHubMixin):
286
286
  if isinstance(config, dict):
287
287
  (save_directory / CONFIG_NAME).write_text(json.dumps(config, indent=4))
288
288
 
289
- # Save cleaned datapipes configuration file
289
+ # Save cleaned configuration file
290
290
  if data_config is not None:
291
291
  new_data_config_path = save_directory / DATA_CONFIG_NAME
292
292
 
@@ -32,7 +32,7 @@ The model is trained on data from 2019-2022 and validated on data from 2022-2023
32
32
 
33
33
  ### Preprocessing
34
34
 
35
- Data is prepared with the `ocf_datapipes.training.pvnet_site` datapipe [2].
35
+ Data is prepared with the `ocf_data_sampler/torch_datasets/datasets/site` Dataset [2].
36
36
 
37
37
 
38
38
  ## Results
@@ -48,4 +48,4 @@ Trained on a single NVIDIA Tesla T4
48
48
  ### Software
49
49
 
50
50
  - [1] https://github.com/openclimatefix/PVNet
51
- - [2] https://github.com/openclimatefix/ocf_datapipes
51
+ - [2] https://github.com/openclimatefix/ocf-data-sampler
@@ -31,7 +31,7 @@ The model is trained on data from 2019-2022 and validated on data from 2022-2023
31
31
 
32
32
  ### Preprocessing
33
33
 
34
- Data is prepared with the `ocf_datapipes.training.pvnet` datapipe [2].
34
+ Data is prepared with the `ocf_data_sampler/torch_datasets/datasets/pvnet_uk` Dataset [2].
35
35
 
36
36
 
37
37
  ## Results
@@ -51,4 +51,4 @@ Trained on a single NVIDIA Tesla T4
51
51
  ### Software
52
52
 
53
53
  - [1] https://github.com/openclimatefix/PVNet
54
- - [2] https://github.com/openclimatefix/ocf_datapipes
54
+ - [2] https://github.com/openclimatefix/ocf-data-sampler
@@ -32,7 +32,7 @@ The model is trained on data from 2019-2022 and validated on data from 2022-2023
32
32
 
33
33
  ### Preprocessing
34
34
 
35
- Data is prepared with the `ocf_datapipes.training.windnet` datapipe [2].
35
+ Data is prepared with the `ocf_data_sampler/torch_datasets/datasets/site` Dataset [2].
36
36
 
37
37
 
38
38
  ## Results
@@ -48,4 +48,4 @@ Trained on a single NVIDIA Tesla T4
48
48
  ### Software
49
49
 
50
50
  - [1] https://github.com/openclimatefix/PVNet
51
- - [2] https://github.com/openclimatefix/ocf_datapipes
51
+ - [2] https://github.com/openclimatefix/ocf-data-sampler
@@ -170,7 +170,6 @@ class SingleAttentionNetwork(AbstractSitesEncoder):
170
170
  self.input_key_to_use = input_key_to_use
171
171
  self.num_channels = num_channels
172
172
  self.num_sites_in_inference = num_sites_in_inference
173
- print(self.sequence_length, "SEQUENCE LENGTH")
174
173
 
175
174
  if use_id_in_value:
176
175
  self.value_id_embedding = nn.Embedding(num_sites, id_embed_dim)
@@ -1,4 +1,4 @@
1
- from ocf_datapipes.utils.location import Location
1
+ from ocf_data_sampler.select.location import Location
2
2
  from pvnet.utils import SiteLocationLookup
3
3
  import xarray as xr
4
4
  import pytest
@@ -1,2 +0,0 @@
1
- """PVNet"""
2
- __version__ = "4.0.0"
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