PVNet 4.0.3__tar.gz → 4.0.4__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.3 → pvnet-4.0.4}/PKG-INFO +4 -5
  2. {pvnet-4.0.3 → pvnet-4.0.4}/PVNet.egg-info/PKG-INFO +4 -5
  3. {pvnet-4.0.3 → pvnet-4.0.4}/PVNet.egg-info/requires.txt +1 -3
  4. pvnet-4.0.4/pvnet/__init__.py +2 -0
  5. {pvnet-4.0.3 → pvnet-4.0.4}/pyproject.toml +51 -4
  6. pvnet-4.0.3/pvnet/__init__.py +0 -2
  7. {pvnet-4.0.3 → pvnet-4.0.4}/LICENSE +0 -0
  8. {pvnet-4.0.3 → pvnet-4.0.4}/MANIFEST.in +0 -0
  9. {pvnet-4.0.3 → pvnet-4.0.4}/PVNet.egg-info/SOURCES.txt +0 -0
  10. {pvnet-4.0.3 → pvnet-4.0.4}/PVNet.egg-info/dependency_links.txt +0 -0
  11. {pvnet-4.0.3 → pvnet-4.0.4}/PVNet.egg-info/top_level.txt +0 -0
  12. {pvnet-4.0.3 → pvnet-4.0.4}/README.md +0 -0
  13. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/callbacks.py +0 -0
  14. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/data/__init__.py +0 -0
  15. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/data/base_datamodule.py +0 -0
  16. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/data/site_datamodule.py +0 -0
  17. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/data/uk_regional_datamodule.py +0 -0
  18. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/load_model.py +0 -0
  19. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/__init__.py +0 -0
  20. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/base_model.py +0 -0
  21. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/baseline/__init__.py +0 -0
  22. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/baseline/last_value.py +0 -0
  23. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/baseline/single_value.py +0 -0
  24. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/ensemble.py +0 -0
  25. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/model_cards/pv_india_model_card_template.md +0 -0
  26. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/model_cards/pv_uk_regional_model_card_template.md +0 -0
  27. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/model_cards/wind_india_model_card_template.md +0 -0
  28. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/__init__.py +0 -0
  29. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/basic_blocks.py +0 -0
  30. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/encoders/__init__.py +0 -0
  31. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
  32. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
  33. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
  34. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
  35. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
  36. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
  37. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
  38. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/multimodal.py +0 -0
  39. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/multimodal_base.py +0 -0
  40. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
  41. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
  42. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
  43. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
  44. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/models/utils.py +0 -0
  45. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/optimizers.py +0 -0
  46. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/training.py +0 -0
  47. {pvnet-4.0.3 → pvnet-4.0.4}/pvnet/utils.py +0 -0
  48. {pvnet-4.0.3 → pvnet-4.0.4}/setup.cfg +0 -0
  49. {pvnet-4.0.3 → pvnet-4.0.4}/tests/test_end2end.py +0 -0
  50. {pvnet-4.0.3 → pvnet-4.0.4}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: PVNet
3
- Version: 4.0.3
3
+ Version: 4.0.4
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Description-Content-Type: text/markdown
@@ -34,9 +34,7 @@ Requires-Dist: rich
34
34
  Requires-Dist: gcsfs
35
35
  Provides-Extra: dev
36
36
  Requires-Dist: pvlive-api; extra == "dev"
37
- Requires-Dist: black; extra == "dev"
38
- Requires-Dist: flake8; extra == "dev"
39
- Requires-Dist: isort; extra == "dev"
37
+ Requires-Dist: ruff; extra == "dev"
40
38
  Requires-Dist: mypy; extra == "dev"
41
39
  Requires-Dist: pre-commit; extra == "dev"
42
40
  Requires-Dist: pytest; extra == "dev"
@@ -46,6 +44,7 @@ Requires-Dist: pytorch-tabnet; extra == "all-models"
46
44
  Requires-Dist: efficientnet_pytorch; extra == "all-models"
47
45
  Provides-Extra: all
48
46
  Requires-Dist: PVNet[all_models,dev]; extra == "all"
47
+ Dynamic: license-file
49
48
 
50
49
  # PVNet 2.1
51
50
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: PVNet
3
- Version: 4.0.3
3
+ Version: 4.0.4
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Description-Content-Type: text/markdown
@@ -34,9 +34,7 @@ Requires-Dist: rich
34
34
  Requires-Dist: gcsfs
35
35
  Provides-Extra: dev
36
36
  Requires-Dist: pvlive-api; extra == "dev"
37
- Requires-Dist: black; extra == "dev"
38
- Requires-Dist: flake8; extra == "dev"
39
- Requires-Dist: isort; extra == "dev"
37
+ Requires-Dist: ruff; extra == "dev"
40
38
  Requires-Dist: mypy; extra == "dev"
41
39
  Requires-Dist: pre-commit; extra == "dev"
42
40
  Requires-Dist: pytest; extra == "dev"
@@ -46,6 +44,7 @@ Requires-Dist: pytorch-tabnet; extra == "all-models"
46
44
  Requires-Dist: efficientnet_pytorch; extra == "all-models"
47
45
  Provides-Extra: all
48
46
  Requires-Dist: PVNet[all_models,dev]; extra == "all"
47
+ Dynamic: license-file
49
48
 
50
49
  # PVNet 2.1
51
50
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
@@ -35,9 +35,7 @@ efficientnet_pytorch
35
35
 
36
36
  [dev]
37
37
  pvlive-api
38
- black
39
- flake8
40
- isort
38
+ ruff
41
39
  mypy
42
40
  pre-commit
43
41
  pytest
@@ -0,0 +1,2 @@
1
+ """PVNet"""
2
+ __version__ = "4.0.4"
@@ -45,9 +45,7 @@ readme = {file = "README.md", content-type = "text/markdown"}
45
45
  [project.optional-dependencies]
46
46
  dev=[
47
47
  "pvlive-api",
48
- "black",
49
- "flake8",
50
- "isort",
48
+ "ruff",
51
49
  "mypy",
52
50
  "pre-commit",
53
51
  "pytest",
@@ -86,4 +84,53 @@ testpaths = [
86
84
 
87
85
  [tool.ruff]
88
86
  line-length = 100
89
- exclude = [".ipynb_checkpoints", "tests", "configs.example"]
87
+ exclude = [
88
+ ".ipynb_checkpoints",
89
+ "configs.example",
90
+ ".bzr",
91
+ ".direnv",
92
+ ".eggs",
93
+ ".git",
94
+ ".hg",
95
+ ".mypy_cache",
96
+ ".nox",
97
+ ".pants.d",
98
+ ".pytype",
99
+ ".ruff_cache",
100
+ ".svn",
101
+ ".tox",
102
+ ".venv",
103
+ "__pypackages__",
104
+ "_build",
105
+ "buck-out",
106
+ "build",
107
+ "dist",
108
+ "node_modules",
109
+ "venv",
110
+ "tests",
111
+ ]
112
+
113
+ # Assume Python 3.10.
114
+ target-version = "py310"
115
+ fix = false
116
+
117
+ [tool.ruff.lint]
118
+ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
119
+ # Allow autofix for all enabled rules (when `--fix`) is provided.
120
+ fixable = ["A", "B", "C", "D", "E", "F", "I"]
121
+ unfixable = []
122
+ select = ["E", "F", "D", "I"]
123
+ ignore-init-module-imports = true
124
+ # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
125
+ ignore = ["D200","D202","D210","D212","D415","D105",]
126
+
127
+ [tool.ruff.lint.mccabe]
128
+ # Unlike Flake8, default to a complexity level of 10.
129
+ max-complexity = 10
130
+
131
+ [tool.ruff.lint.pydocstyle]
132
+ # Use Google-style docstrings.
133
+ convention = "google"
134
+
135
+ [tool.ruff.lint.per-file-ignores]
136
+ "__init__.py" = ["F401", "E402"]
@@ -1,2 +0,0 @@
1
- """PVNet"""
2
- __version__ = "4.0.3"
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