PVNet 5.3.8__py3-none-any.whl → 5.3.10__py3-none-any.whl
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/utils.py +12 -0
- {pvnet-5.3.8.dist-info → pvnet-5.3.10.dist-info}/METADATA +1 -1
- {pvnet-5.3.8.dist-info → pvnet-5.3.10.dist-info}/RECORD +6 -6
- {pvnet-5.3.8.dist-info → pvnet-5.3.10.dist-info}/WHEEL +0 -0
- {pvnet-5.3.8.dist-info → pvnet-5.3.10.dist-info}/licenses/LICENSE +0 -0
- {pvnet-5.3.8.dist-info → pvnet-5.3.10.dist-info}/top_level.txt +0 -0
pvnet/utils.py
CHANGED
|
@@ -140,6 +140,18 @@ def validate_batch_against_config(
|
|
|
140
140
|
if actual_seq < enc.sequence_length:
|
|
141
141
|
raise ValueError(f"Sat too short: exp {enc.sequence_length}, got {actual_seq}")
|
|
142
142
|
|
|
143
|
+
if model.include_sun:
|
|
144
|
+
exp_len = model.history_len + model.forecast_len + 1
|
|
145
|
+
|
|
146
|
+
for key in ("solar_azimuth", "solar_elevation"):
|
|
147
|
+
if (sun := batch.get(key)) is None:
|
|
148
|
+
raise ValueError(f"Model uses solar data but '{key}' missing from batch.")
|
|
149
|
+
|
|
150
|
+
_, actual_seq = sun.shape[:2]
|
|
151
|
+
|
|
152
|
+
if actual_seq != exp_len:
|
|
153
|
+
raise ValueError(f"Sun {key} mismatch: exp {exp_len}, got {actual_seq}")
|
|
154
|
+
|
|
143
155
|
key = "generation"
|
|
144
156
|
if key in batch:
|
|
145
157
|
total_minutes = model.history_minutes + model.forecast_minutes
|
|
@@ -2,7 +2,7 @@ pvnet/__init__.py,sha256=TAZm88TJ5ieL1XjEyRg1LciIGuSScEucdAruQLfM92I,25
|
|
|
2
2
|
pvnet/datamodule.py,sha256=wc1RQfFhgW9Hxyw7vrpFERhOd2FmjDsO1x49J2erOYk,5750
|
|
3
3
|
pvnet/load_model.py,sha256=P1QODX_mJRnKZ_kIll9BlOjK_A1W4YM3QG-mZd-2Mcc,3852
|
|
4
4
|
pvnet/optimizers.py,sha256=DZ74KcFQV226zwu7-qAzofTMTYeIyScox4Kqbq30WWY,6440
|
|
5
|
-
pvnet/utils.py,sha256=
|
|
5
|
+
pvnet/utils.py,sha256=F5YIF-WbzJmUDY-MNOEfSioqeOXKnCe7Tx9CHk3Nbec,6213
|
|
6
6
|
pvnet/models/__init__.py,sha256=owzZ9xkD0DRTT51mT2Dx_p96oJjwDz57xo_MaMIEosk,145
|
|
7
7
|
pvnet/models/base_model.py,sha256=V-vBqtzZc_c8Ho5hVo_ikq2wzZ7hsAIM7I4vhzGDfNc,16051
|
|
8
8
|
pvnet/models/ensemble.py,sha256=USpNQ0O5eiffapLPE9T6gR-uK9f_3E4pX3DK7Lmkn2U,2228
|
|
@@ -22,8 +22,8 @@ pvnet/training/__init__.py,sha256=FKxmPZ59Vuj5_mXomN4saJ3En5M-aDMxSs6OttTQOcg,49
|
|
|
22
22
|
pvnet/training/lightning_module.py,sha256=hmvne9DQauWpG61sRK-t8MTZRVwdywaEFCs0VFVRuMs,13522
|
|
23
23
|
pvnet/training/plots.py,sha256=7JtjA9zIotuoKZ2l0fbS-FZDB48TcIk_-XLA2EWVMv4,2448
|
|
24
24
|
pvnet/training/train.py,sha256=Sry2wYgggUmtIB-k_umFts7xMr2roEL76NCu9ySbLUY,4107
|
|
25
|
-
pvnet-5.3.
|
|
26
|
-
pvnet-5.3.
|
|
27
|
-
pvnet-5.3.
|
|
28
|
-
pvnet-5.3.
|
|
29
|
-
pvnet-5.3.
|
|
25
|
+
pvnet-5.3.10.dist-info/licenses/LICENSE,sha256=tKUnlSmcLBWMJWkHx3UjZGdrjs9LidGwLo0jsBUBAwU,1077
|
|
26
|
+
pvnet-5.3.10.dist-info/METADATA,sha256=zFvVQLzeHpua5ESlapp6-Zx5wuKwE6zcmQpDdShfkws,16480
|
|
27
|
+
pvnet-5.3.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
28
|
+
pvnet-5.3.10.dist-info/top_level.txt,sha256=4mg6WjeW05SR7pg3-Q4JRE2yAoutHYpspOsiUzYVNv0,6
|
|
29
|
+
pvnet-5.3.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|