PVNet 5.0.22__py3-none-any.whl → 5.0.23__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.
@@ -152,13 +152,13 @@ class PVNetLightningModule(pl.LightningModule):
152
152
  def _store_val_predictions(self, batch: TensorBatch, y_hat: torch.Tensor) -> None:
153
153
  """Internally store the validation predictions"""
154
154
 
155
- taregt_key = self.model._target_key
155
+ target_key = self.model._target_key
156
156
 
157
- y = batch[taregt_key][:, -self.model.forecast_len :].cpu().numpy()
157
+ y = batch[target_key][:, -self.model.forecast_len :].cpu().numpy()
158
158
  y_hat = y_hat.cpu().numpy()
159
- ids = batch[f"{taregt_key}_id"].cpu().numpy()
159
+ ids = batch[f"{target_key}_id"].cpu().numpy()
160
160
  init_times_utc = pd.to_datetime(
161
- batch[f"{taregt_key}_time_utc"][:, self.model.history_len+1]
161
+ batch[f"{target_key}_time_utc"][:, self.model.history_len+1]
162
162
  .cpu().numpy().astype("datetime64[ns]")
163
163
  )
164
164
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PVNet
3
- Version: 5.0.22
3
+ Version: 5.0.23
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=Hoqy_Csulfu-aUGOo9aqPYs7gHmbHqQTE8XaVI0ieVI,12954
25
+ pvnet/training/lightning_module.py,sha256=RFp0kOmRW0cYU__i7SRCJUIvlp57s5cZ_H3hy2JnBxE,12954
26
26
  pvnet/training/plots.py,sha256=4xID7TBA4IazaARaCN5AoG5fFPJF1wIprn0y6I0C31c,2469
27
27
  pvnet/training/train.py,sha256=1tDA34ianCRfilS0yEeIpR9nsQWaJiiZfTD2qRUmgEc,5214
28
- pvnet-5.0.22.dist-info/licenses/LICENSE,sha256=tKUnlSmcLBWMJWkHx3UjZGdrjs9LidGwLo0jsBUBAwU,1077
29
- pvnet-5.0.22.dist-info/METADATA,sha256=4C-v2KoK7y5AaaCJ13jmSE8iDg_-Shv6fUwdSAMHEOY,16371
30
- pvnet-5.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- pvnet-5.0.22.dist-info/top_level.txt,sha256=4mg6WjeW05SR7pg3-Q4JRE2yAoutHYpspOsiUzYVNv0,6
32
- pvnet-5.0.22.dist-info/RECORD,,
28
+ pvnet-5.0.23.dist-info/licenses/LICENSE,sha256=tKUnlSmcLBWMJWkHx3UjZGdrjs9LidGwLo0jsBUBAwU,1077
29
+ pvnet-5.0.23.dist-info/METADATA,sha256=X7GP60yXq1daxBdG5Uw2daDo1BRdDMIo6Lk1Hh2IBnU,16371
30
+ pvnet-5.0.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ pvnet-5.0.23.dist-info/top_level.txt,sha256=4mg6WjeW05SR7pg3-Q4JRE2yAoutHYpspOsiUzYVNv0,6
32
+ pvnet-5.0.23.dist-info/RECORD,,
File without changes