PVNet 2.5.1__tar.gz → 2.6.1__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 (49) hide show
  1. {PVNet-2.5.1 → PVNet-2.6.1}/PKG-INFO +2 -2
  2. {PVNet-2.5.1 → PVNet-2.6.1}/PVNet.egg-info/PKG-INFO +2 -2
  3. {PVNet-2.5.1 → PVNet-2.6.1}/PVNet.egg-info/requires.txt +1 -1
  4. PVNet-2.6.1/pvnet/__init__.py +2 -0
  5. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/data/utils.py +1 -2
  6. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/base_model.py +2 -2
  7. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/baseline/last_value.py +1 -1
  8. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/baseline/single_value.py +1 -1
  9. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/deep_supervision.py +1 -1
  10. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/multimodal.py +1 -1
  11. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/nwp_weighting.py +1 -1
  12. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/site_encoders/encoders.py +1 -1
  13. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/weather_residual.py +1 -1
  14. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/utils.py +1 -1
  15. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/utils.py +2 -1
  16. {PVNet-2.5.1 → PVNet-2.6.1}/requirements.txt +1 -1
  17. {PVNet-2.5.1 → PVNet-2.6.1}/tests/conftest.py +1 -1
  18. PVNet-2.5.1/pvnet/__init__.py +0 -2
  19. {PVNet-2.5.1 → PVNet-2.6.1}/LICENSE +0 -0
  20. {PVNet-2.5.1 → PVNet-2.6.1}/MANIFEST.in +0 -0
  21. {PVNet-2.5.1 → PVNet-2.6.1}/PVNet.egg-info/SOURCES.txt +0 -0
  22. {PVNet-2.5.1 → PVNet-2.6.1}/PVNet.egg-info/dependency_links.txt +0 -0
  23. {PVNet-2.5.1 → PVNet-2.6.1}/PVNet.egg-info/top_level.txt +0 -0
  24. {PVNet-2.5.1 → PVNet-2.6.1}/README.md +0 -0
  25. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/callbacks.py +0 -0
  26. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/data/__init__.py +0 -0
  27. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/data/datamodule.py +0 -0
  28. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/data/wind_datamodule.py +0 -0
  29. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/__init__.py +0 -0
  30. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/baseline/__init__.py +0 -0
  31. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/__init__.py +0 -0
  32. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/basic_blocks.py +0 -0
  33. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/encoders/__init__.py +0 -0
  34. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
  35. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
  36. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
  37. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
  38. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
  39. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
  40. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
  41. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
  42. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
  43. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/optimizers.py +0 -0
  44. {PVNet-2.5.1 → PVNet-2.6.1}/pvnet/training.py +0 -0
  45. {PVNet-2.5.1 → PVNet-2.6.1}/pyproject.toml +0 -0
  46. {PVNet-2.5.1 → PVNet-2.6.1}/requirements-dev.txt +0 -0
  47. {PVNet-2.5.1 → PVNet-2.6.1}/setup.cfg +0 -0
  48. {PVNet-2.5.1 → PVNet-2.6.1}/setup.py +0 -0
  49. {PVNet-2.5.1 → PVNet-2.6.1}/tests/__init__.py +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PVNet
3
- Version: 2.5.1
3
+ Version: 2.6.1
4
4
  Summary: PVNet
5
5
  Author: Peter Dudfield
6
6
  Author-email: info@openclimatefix.org
7
7
  License: MIT
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
- Requires-Dist: ocf_datapipes>=2.3.0
10
+ Requires-Dist: ocf_datapipes>=3.0.0
11
11
  Requires-Dist: ocf_ml_metrics
12
12
  Requires-Dist: numpy
13
13
  Requires-Dist: pandas
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PVNet
3
- Version: 2.5.1
3
+ Version: 2.6.1
4
4
  Summary: PVNet
5
5
  Author: Peter Dudfield
6
6
  Author-email: info@openclimatefix.org
7
7
  License: MIT
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
- Requires-Dist: ocf_datapipes>=2.3.0
10
+ Requires-Dist: ocf_datapipes>=3.0.0
11
11
  Requires-Dist: ocf_ml_metrics
12
12
  Requires-Dist: numpy
13
13
  Requires-Dist: pandas
@@ -1,4 +1,4 @@
1
- ocf_datapipes>=2.3.0
1
+ ocf_datapipes>=3.0.0
2
2
  ocf_ml_metrics
3
3
  numpy
4
4
  pandas
@@ -0,0 +1,2 @@
1
+ """PVNet"""
2
+ __version__ = "2.6.1"
@@ -1,8 +1,7 @@
1
1
  """Utils common between Wind and PV datamodules"""
2
2
  import numpy as np
3
3
  import torch
4
- from ocf_datapipes.batch import unstack_np_batch_into_examples
5
- from ocf_datapipes.utils.consts import BatchKey
4
+ from ocf_datapipes.batch import BatchKey, unstack_np_batch_into_examples
6
5
  from torch.utils.data import IterDataPipe, functional_datapipe
7
6
 
8
7
 
@@ -17,7 +17,7 @@ from huggingface_hub.constants import CONFIG_NAME, PYTORCH_WEIGHTS_NAME
17
17
  from huggingface_hub.file_download import hf_hub_download
18
18
  from huggingface_hub.hf_api import HfApi
19
19
  from huggingface_hub.utils._deprecation import _deprecate_positional_args
20
- from ocf_datapipes.utils.consts import BatchKey
20
+ from ocf_datapipes.batch import BatchKey
21
21
  from ocf_ml_metrics.evaluation.evaluation import evaluation
22
22
  from ocf_ml_metrics.metrics.errors import common_metrics
23
23
 
@@ -370,7 +370,7 @@ class BaseModel(pl.LightningModule, PVNetModelHubMixin):
370
370
  # Take median value for remaining metric calculations
371
371
  y_hat = self._quantiles_to_prediction(y_hat)
372
372
 
373
- common_metrics_each_step = common_metrics(predictions=y_hat, targets=y)
373
+ common_metrics_each_step = common_metrics(predictions=y_hat, target=y)
374
374
  mse_each_step = common_metrics_each_step["rmse"] ** 2
375
375
  mae_each_step = common_metrics_each_step["mae"]
376
376
 
@@ -1,6 +1,6 @@
1
1
  """Persistence model"""
2
2
 
3
- from ocf_datapipes.utils.consts import BatchKey
3
+ from ocf_datapipes.batch import BatchKey
4
4
 
5
5
  import pvnet
6
6
  from pvnet.models.base_model import BaseModel
@@ -1,6 +1,6 @@
1
1
  """Average value model"""
2
2
  import torch
3
- from ocf_datapipes.utils.consts import BatchKey
3
+ from ocf_datapipes.batch import BatchKey
4
4
  from torch import nn
5
5
 
6
6
  import pvnet
@@ -5,7 +5,7 @@ from typing import Optional
5
5
 
6
6
  import torch
7
7
  import torch.nn.functional as F
8
- from ocf_datapipes.utils.consts import BatchKey
8
+ from ocf_datapipes.batch import BatchKey
9
9
  from torch import nn
10
10
 
11
11
  import pvnet
@@ -4,7 +4,7 @@ from collections import OrderedDict
4
4
  from typing import Optional
5
5
 
6
6
  import torch
7
- from ocf_datapipes.utils.consts import BatchKey, NWPBatchKey
7
+ from ocf_datapipes.batch import BatchKey, NWPBatchKey
8
8
  from torch import nn
9
9
 
10
10
  import pvnet
@@ -2,7 +2,7 @@
2
2
  from typing import Optional
3
3
 
4
4
  import torch
5
- from ocf_datapipes.utils.consts import BatchKey
5
+ from ocf_datapipes.batch import BatchKey
6
6
  from torch import nn
7
7
 
8
8
  import pvnet
@@ -3,7 +3,7 @@
3
3
  """
4
4
 
5
5
  import torch
6
- from ocf_datapipes.utils.consts import BatchKey
6
+ from ocf_datapipes.batch import BatchKey
7
7
  from torch import nn
8
8
 
9
9
  from pvnet.models.multimodal.linear_networks.networks import ResFCNet2
@@ -4,7 +4,7 @@ from typing import Optional
4
4
 
5
5
  import torch
6
6
  import torch.nn.functional as F
7
- from ocf_datapipes.utils.consts import BatchKey
7
+ from ocf_datapipes.batch import BatchKey
8
8
  from torch import nn
9
9
 
10
10
  import pvnet
@@ -6,7 +6,7 @@ from typing import Optional
6
6
 
7
7
  import numpy as np
8
8
  import torch
9
- from ocf_datapipes.utils.consts import BatchKey
9
+ from ocf_datapipes.batch import BatchKey
10
10
 
11
11
  logger = logging.getLogger(__name__)
12
12
 
@@ -15,7 +15,8 @@ import xarray as xr
15
15
  import yaml
16
16
  from lightning.pytorch.loggers import Logger
17
17
  from lightning.pytorch.utilities import rank_zero_only
18
- from ocf_datapipes.utils.consts import BatchKey, Location
18
+ from ocf_datapipes.batch import BatchKey
19
+ from ocf_datapipes.utils import Location
19
20
  from ocf_datapipes.utils.geospatial import osgb_to_lon_lat
20
21
  from omegaconf import DictConfig, OmegaConf
21
22
 
@@ -1,4 +1,4 @@
1
- ocf_datapipes>=2.3.0
1
+ ocf_datapipes>=3.0.0
2
2
  ocf_ml_metrics
3
3
  numpy
4
4
  pandas
@@ -7,7 +7,7 @@ import xarray as xr
7
7
  import torch
8
8
  import hydra
9
9
 
10
- from ocf_datapipes.utils.consts import BatchKey
10
+ from ocf_datapipes.batch import BatchKey
11
11
  from datetime import timedelta
12
12
 
13
13
  import pvnet
@@ -1,2 +0,0 @@
1
- """PVNet"""
2
- __version__ = "2.5.1"
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