PVNet 4.0.4__tar.gz → 4.0.6__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.4 → pvnet-4.0.6}/PKG-INFO +3 -2
  2. {pvnet-4.0.4 → pvnet-4.0.6}/PVNet.egg-info/PKG-INFO +3 -2
  3. {pvnet-4.0.4 → pvnet-4.0.6}/README.md +2 -1
  4. pvnet-4.0.6/pvnet/__init__.py +2 -0
  5. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/base_model.py +4 -0
  6. pvnet-4.0.4/pvnet/__init__.py +0 -2
  7. {pvnet-4.0.4 → pvnet-4.0.6}/LICENSE +0 -0
  8. {pvnet-4.0.4 → pvnet-4.0.6}/MANIFEST.in +0 -0
  9. {pvnet-4.0.4 → pvnet-4.0.6}/PVNet.egg-info/SOURCES.txt +0 -0
  10. {pvnet-4.0.4 → pvnet-4.0.6}/PVNet.egg-info/dependency_links.txt +0 -0
  11. {pvnet-4.0.4 → pvnet-4.0.6}/PVNet.egg-info/requires.txt +0 -0
  12. {pvnet-4.0.4 → pvnet-4.0.6}/PVNet.egg-info/top_level.txt +0 -0
  13. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/callbacks.py +0 -0
  14. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/data/__init__.py +0 -0
  15. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/data/base_datamodule.py +0 -0
  16. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/data/site_datamodule.py +0 -0
  17. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/data/uk_regional_datamodule.py +0 -0
  18. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/load_model.py +0 -0
  19. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/__init__.py +0 -0
  20. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/baseline/__init__.py +0 -0
  21. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/baseline/last_value.py +0 -0
  22. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/baseline/single_value.py +0 -0
  23. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/ensemble.py +0 -0
  24. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/model_cards/pv_india_model_card_template.md +0 -0
  25. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/model_cards/pv_uk_regional_model_card_template.md +0 -0
  26. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/model_cards/wind_india_model_card_template.md +0 -0
  27. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/__init__.py +0 -0
  28. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/basic_blocks.py +0 -0
  29. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/encoders/__init__.py +0 -0
  30. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
  31. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
  32. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
  33. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
  34. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
  35. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
  36. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
  37. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/multimodal.py +0 -0
  38. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/multimodal_base.py +0 -0
  39. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
  40. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
  41. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
  42. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
  43. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/models/utils.py +0 -0
  44. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/optimizers.py +0 -0
  45. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/training.py +0 -0
  46. {pvnet-4.0.4 → pvnet-4.0.6}/pvnet/utils.py +0 -0
  47. {pvnet-4.0.4 → pvnet-4.0.6}/pyproject.toml +0 -0
  48. {pvnet-4.0.4 → pvnet-4.0.6}/setup.cfg +0 -0
  49. {pvnet-4.0.4 → pvnet-4.0.6}/tests/test_end2end.py +0 -0
  50. {pvnet-4.0.4 → pvnet-4.0.6}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PVNet
3
- Version: 4.0.4
3
+ Version: 4.0.6
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Description-Content-Type: text/markdown
@@ -48,7 +48,7 @@ Dynamic: license-file
48
48
 
49
49
  # PVNet 2.1
50
50
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
51
- [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
51
+ [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
52
52
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
53
53
 
54
54
  [![Python Bump Version & release](https://github.com/openclimatefix/PVNet/actions/workflows/release.yml/badge.svg)](https://github.com/openclimatefix/PVNet/actions/workflows/release.yml) [![ease of contribution: hard](https://img.shields.io/badge/ease%20of%20contribution:%20hard-bb2629)](https://github.com/openclimatefix/ocf-meta-repo?tab=readme-ov-file#overview-of-ocfs-nowcasting-repositories)
@@ -303,6 +303,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
303
303
  </tr>
304
304
  <tr>
305
305
  <td align="center" valign="top" width="14.28%"><a href="https://www.jacobbieker.com"><img src="https://avatars.githubusercontent.com/u/7170359?v=4?s=100" width="100px;" alt="Jacob Prince-Bieker"/><br /><sub><b>Jacob Prince-Bieker</b></sub></a><br /><a href="https://github.com/openclimatefix/PVNet/commits?author=jacobbieker" title="Code">💻</a></td>
306
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/codderrrrr"><img src="https://avatars.githubusercontent.com/u/149995852?v=4?s=100" width="100px;" alt="codderrrrr"/><br /><sub><b>codderrrrr</b></sub></a><br /><a href="https://github.com/openclimatefix/PVNet/commits?author=codderrrrr" title="Code">💻</a></td>
306
307
  </tr>
307
308
  </tbody>
308
309
  </table>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PVNet
3
- Version: 4.0.4
3
+ Version: 4.0.6
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Description-Content-Type: text/markdown
@@ -48,7 +48,7 @@ Dynamic: license-file
48
48
 
49
49
  # PVNet 2.1
50
50
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
51
- [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
51
+ [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
52
52
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
53
53
 
54
54
  [![Python Bump Version & release](https://github.com/openclimatefix/PVNet/actions/workflows/release.yml/badge.svg)](https://github.com/openclimatefix/PVNet/actions/workflows/release.yml) [![ease of contribution: hard](https://img.shields.io/badge/ease%20of%20contribution:%20hard-bb2629)](https://github.com/openclimatefix/ocf-meta-repo?tab=readme-ov-file#overview-of-ocfs-nowcasting-repositories)
@@ -303,6 +303,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
303
303
  </tr>
304
304
  <tr>
305
305
  <td align="center" valign="top" width="14.28%"><a href="https://www.jacobbieker.com"><img src="https://avatars.githubusercontent.com/u/7170359?v=4?s=100" width="100px;" alt="Jacob Prince-Bieker"/><br /><sub><b>Jacob Prince-Bieker</b></sub></a><br /><a href="https://github.com/openclimatefix/PVNet/commits?author=jacobbieker" title="Code">💻</a></td>
306
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/codderrrrr"><img src="https://avatars.githubusercontent.com/u/149995852?v=4?s=100" width="100px;" alt="codderrrrr"/><br /><sub><b>codderrrrr</b></sub></a><br /><a href="https://github.com/openclimatefix/PVNet/commits?author=codderrrrr" title="Code">💻</a></td>
306
307
  </tr>
307
308
  </tbody>
308
309
  </table>
@@ -1,6 +1,6 @@
1
1
  # PVNet 2.1
2
2
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3
- [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
3
+ [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
4
4
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
5
5
 
6
6
  [![Python Bump Version & release](https://github.com/openclimatefix/PVNet/actions/workflows/release.yml/badge.svg)](https://github.com/openclimatefix/PVNet/actions/workflows/release.yml) [![ease of contribution: hard](https://img.shields.io/badge/ease%20of%20contribution:%20hard-bb2629)](https://github.com/openclimatefix/ocf-meta-repo?tab=readme-ov-file#overview-of-ocfs-nowcasting-repositories)
@@ -255,6 +255,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
255
255
  </tr>
256
256
  <tr>
257
257
  <td align="center" valign="top" width="14.28%"><a href="https://www.jacobbieker.com"><img src="https://avatars.githubusercontent.com/u/7170359?v=4?s=100" width="100px;" alt="Jacob Prince-Bieker"/><br /><sub><b>Jacob Prince-Bieker</b></sub></a><br /><a href="https://github.com/openclimatefix/PVNet/commits?author=jacobbieker" title="Code">💻</a></td>
258
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/codderrrrr"><img src="https://avatars.githubusercontent.com/u/149995852?v=4?s=100" width="100px;" alt="codderrrrr"/><br /><sub><b>codderrrrr</b></sub></a><br /><a href="https://github.com/openclimatefix/PVNet/commits?author=codderrrrr" title="Code">💻</a></td>
258
259
  </tr>
259
260
  </tbody>
260
261
  </table>
@@ -0,0 +1,2 @@
1
+ """PVNet"""
2
+ __version__ = "4.0.6"
@@ -250,6 +250,7 @@ class PVNetModelHubMixin(PyTorchModelHubMixin):
250
250
  wandb_repo: Optional[str] = None,
251
251
  wandb_ids: Optional[Union[list[str], str]] = None,
252
252
  card_template_path=None,
253
+ revision: str = "main",
253
254
  **kwargs,
254
255
  ) -> Optional[str]:
255
256
  """
@@ -271,6 +272,8 @@ class PVNetModelHubMixin(PyTorchModelHubMixin):
271
272
  wandb_ids: Identifier(s) of the model on wandb.
272
273
  card_template_path: Path to the HuggingFace model card template. Defaults to card in
273
274
  PVNet library if set to None.
275
+ revision (`str`, *optional*, defaults to `"main"`):
276
+ The revision to push the model to. Only used if `push_to_hub=True`.
274
277
  kwargs:
275
278
  Additional key word arguments passed along to the
276
279
  [`~ModelHubMixin._from_pretrained`] method.
@@ -335,6 +338,7 @@ class PVNetModelHubMixin(PyTorchModelHubMixin):
335
338
  repo_id=repo_id,
336
339
  repo_type="model",
337
340
  folder_path=save_directory,
341
+ revision=revision,
338
342
  )
339
343
 
340
344
  return None
@@ -1,2 +0,0 @@
1
- """PVNet"""
2
- __version__ = "4.0.4"
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