PVNet 5.0.8__py3-none-any.whl → 5.0.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.
@@ -105,8 +105,9 @@ class PVNetLightningModule(pl.LightningModule):
105
105
  """Run training step"""
106
106
  y_hat = self.model(batch)
107
107
 
108
- # Batch is adapted in the model forward method, but needs to be adapted here too
109
- batch = self.model._adapt_batch(batch)
108
+ # Batch may be adapted in the model forward method, would need adapting here too
109
+ if self.model.adapt_batches:
110
+ batch = self.model._adapt_batch(batch)
110
111
 
111
112
  y = batch[self.model._target_key][:, -self.model.forecast_len :]
112
113
 
@@ -211,8 +212,9 @@ class PVNetLightningModule(pl.LightningModule):
211
212
  with torch.no_grad():
212
213
  y_hat = self.model(batch)
213
214
 
214
- # Batch is adapted in the model forward method, but needs to be adapted here too
215
- batch = self.model._adapt_batch(batch)
215
+ # Batch may be adapted in the model forward method, would need adapting here too
216
+ if self.model.adapt_batches:
217
+ batch = self.model._adapt_batch(batch)
216
218
 
217
219
  fig = plot_sample_forecasts(
218
220
  batch,
@@ -233,8 +235,9 @@ class PVNetLightningModule(pl.LightningModule):
233
235
  """Run validation step"""
234
236
 
235
237
  y_hat = self.model(batch)
236
- # Batch is adapted in the model forward method, but needs to be adapted here too
237
- batch = self.model._adapt_batch(batch)
238
+ # Batch may be adapted in the model forward method, would need adapting here too
239
+ if self.model.adapt_batches:
240
+ batch = self.model._adapt_batch(batch)
238
241
 
239
242
  # Internally store the val predictions
240
243
  self._store_val_predictions(batch, y_hat)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PVNet
3
- Version: 5.0.8
3
+ Version: 5.0.10
4
4
  Summary: PVNet
5
5
  Author-email: Peter Dudfield <info@openclimatefix.org>
6
6
  Requires-Python: >=3.11
@@ -22,11 +22,11 @@ pvnet/models/late_fusion/site_encoders/__init__.py,sha256=QoUiiWWFf12vEpdkw0gO4T
22
22
  pvnet/models/late_fusion/site_encoders/basic_blocks.py,sha256=iEB_N7ZL5HMQ1hZM6H32A71GCwP7YbErUx0oQF21PQM,1042
23
23
  pvnet/models/late_fusion/site_encoders/encoders.py,sha256=k4z690cfcP6J4pm2KtDujHN-W3uOl7QY0WvBIu1tM8c,11703
24
24
  pvnet/training/__init__.py,sha256=FKxmPZ59Vuj5_mXomN4saJ3En5M-aDMxSs6OttTQOcg,49
25
- pvnet/training/lightning_module.py,sha256=B8fDpWIcM7v-653cbAtoNM4qQ9wB88IqWeRn0YIK2AU,13115
25
+ pvnet/training/lightning_module.py,sha256=GVqdi5ALFo9-_WRYeyMMj2qH_k4gPxQ2sG6FhL_wRFE,13242
26
26
  pvnet/training/plots.py,sha256=4xID7TBA4IazaARaCN5AoG5fFPJF1wIprn0y6I0C31c,2469
27
27
  pvnet/training/train.py,sha256=zj9JMi9C6W68vGsQUBapWkJ4aDzDuJFMv0IVjO73s1k,5215
28
- pvnet-5.0.8.dist-info/licenses/LICENSE,sha256=tKUnlSmcLBWMJWkHx3UjZGdrjs9LidGwLo0jsBUBAwU,1077
29
- pvnet-5.0.8.dist-info/METADATA,sha256=LUBs04lvJcUzUzM--aswF_lyBwQ9RUB-cJLuhg44j8g,18043
30
- pvnet-5.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- pvnet-5.0.8.dist-info/top_level.txt,sha256=4mg6WjeW05SR7pg3-Q4JRE2yAoutHYpspOsiUzYVNv0,6
32
- pvnet-5.0.8.dist-info/RECORD,,
28
+ pvnet-5.0.10.dist-info/licenses/LICENSE,sha256=tKUnlSmcLBWMJWkHx3UjZGdrjs9LidGwLo0jsBUBAwU,1077
29
+ pvnet-5.0.10.dist-info/METADATA,sha256=hJZhyH6uJBWZ24k9OZ5d9lZi7SayB3qiiNSeNXA-zFk,18044
30
+ pvnet-5.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ pvnet-5.0.10.dist-info/top_level.txt,sha256=4mg6WjeW05SR7pg3-Q4JRE2yAoutHYpspOsiUzYVNv0,6
32
+ pvnet-5.0.10.dist-info/RECORD,,
File without changes