ocf-data-sampler 0.0.54__py3-none-any.whl → 0.1.1__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.

Potentially problematic release.


This version of ocf-data-sampler might be problematic. Click here for more details.

@@ -7,6 +7,7 @@ NWP_PROVIDERS = [
7
7
  "ecmwf",
8
8
  "gfs"
9
9
  ]
10
+ # TODO add ICON
10
11
 
11
12
 
12
13
  def _to_data_array(d):
@@ -65,7 +65,9 @@ class UKRegionalSample(SampleBase):
65
65
  raise ValueError(f"Only .pt format is supported: {path.suffix}")
66
66
 
67
67
  instance = cls()
68
- instance._data = torch.load(path)
68
+ # TODO: We should move away from using torch.load(..., weights_only=False)
69
+ # This is not recommended
70
+ instance._data = torch.load(path, weights_only=False)
69
71
  logger.debug(f"Successfully loaded UKRegionalSample from {path}")
70
72
  return instance
71
73
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ocf_data_sampler
3
- Version: 0.0.54
3
+ Version: 0.1.1
4
4
  Summary: Sample from weather data for renewable energy prediction
5
5
  Author: James Fulton, Peter Dudfield, and the Open Climate Fix team
6
6
  Author-email: info@openclimatefix.org
@@ -70,8 +70,7 @@ Requires-Dist: matplotlib; extra == "plot"
70
70
  We are currently migrating to this repo from [ocf_datapipes](https://github.com/openclimatefix/ocf_datapipes/), which performs the same functions but is built around `PyTorch DataPipes`, which are quite cumbersome to work with and are no longer maintained by PyTorch. **ocf-data-sampler** uses `PyTorch Datasets`, and we've taken the opportunity to make the code much cleaner and more manageable.
71
71
 
72
72
  > [!Note]
73
- > This repository is still in development and does not yet have the full
74
- > functionality of its predecessor, [ocf_datapipes](https://github.com/openclimatefix/ocf_datapipes/).
73
+ > This repository is in development and is replacing [ocf_datapipes](https://github.com/openclimatefix/ocf_datapipes/).
75
74
  > It might not be ready for use out of the box! We would really appreciate any help to let us make the transition faster.
76
75
 
77
76
  ## Documentation
@@ -1,5 +1,5 @@
1
1
  ocf_data_sampler/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
- ocf_data_sampler/constants.py,sha256=S4-pkGdKj9HxQcMpI0iL90Ob_37Dloejn3c-niqdar0,5063
2
+ ocf_data_sampler/constants.py,sha256=ClteRIgp7EPlUPqIbkel83BfIaD7_VIDjUeHzUfyhnM,5079
3
3
  ocf_data_sampler/utils.py,sha256=rKA0BHAyAG4f90zEcgxp25EEYrXS-aOVNzttZ6Mzv2k,250
4
4
  ocf_data_sampler/config/__init__.py,sha256=YXnAkgHViHB26hSsjiv32b6EbpG-A1kKTkARJf0_RkY,212
5
5
  ocf_data_sampler/config/load.py,sha256=4f7vPHAIAmd-55tPxoIzn7F_TI_ue4NxkDcLPoVWl0g,943
@@ -29,7 +29,7 @@ ocf_data_sampler/numpy_sample/sun_position.py,sha256=UklhucCxCT6GMlAhCWL6c4cfWrd
29
29
  ocf_data_sampler/sample/__init__.py,sha256=02CM7E5nKkGiYbVW-kvzjNd4RaqGuHCkDChtmDBDUoA,248
30
30
  ocf_data_sampler/sample/base.py,sha256=4U78tczCRsKMDwU4HkD20nyGyYjIBSZV5neF2mT--2M,1197
31
31
  ocf_data_sampler/sample/site.py,sha256=0BvDXs0kxTjUq7kWpeoITK_uN4uE0w1IvEFXZUoKOb0,2507
32
- ocf_data_sampler/sample/uk_regional.py,sha256=FPaFi6qaTsi1ag42pfVKDZhopt3cDjQsF4rVI8k2qWo,4244
32
+ ocf_data_sampler/sample/uk_regional.py,sha256=D1A6nQB1PYCmxb3FzU9gqbNufQfx__wcprcDm50jCJw,4381
33
33
  ocf_data_sampler/select/__init__.py,sha256=E4AJulEbO2K-o0UlG1fgaEteuf_1ZFjHTvrotXSb4YU,332
34
34
  ocf_data_sampler/select/dropout.py,sha256=HCx5Wzk8Oh2Z9vV94Jy-ALJsHtGduwvMaQOleQXp5z0,1142
35
35
  ocf_data_sampler/select/fill_time_periods.py,sha256=iTtMjIPFYG5xtUYYedAFBLjTWWUa7t7WQ0-yksWf0-E,440
@@ -73,8 +73,8 @@ tests/torch_datasets/conftest.py,sha256=eRCzHE7cxS4AoskExkCGFDBeqItktAYNAdkfpMoF
73
73
  tests/torch_datasets/test_merge_and_fill_utils.py,sha256=ueA0A7gZaWEgNdsU8p3CnKuvSnlleTUjEhSw2HUUROM,1229
74
74
  tests/torch_datasets/test_pvnet_uk_regional.py,sha256=FCiFueeFqrsXe7gWguSjBz5ZeUrvyhGbGw81gaVvkHM,5087
75
75
  tests/torch_datasets/test_site.py,sha256=J1ZDE5V5MRlq7EuZ1zUu-aFRGTDJIiO-ZZzkOXvDdWA,6757
76
- ocf_data_sampler-0.0.54.dist-info/LICENSE,sha256=F-Q3UFCR-BECSocV55BFDpn4YKxve9PKrm-lTt6o_Tg,1073
77
- ocf_data_sampler-0.0.54.dist-info/METADATA,sha256=o6EIqhbRzXKCy74lRYn4HS48DZyEnyLS1XgiFDh-F-g,12231
78
- ocf_data_sampler-0.0.54.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
79
- ocf_data_sampler-0.0.54.dist-info/top_level.txt,sha256=Faob6N6cFdPc5eUpCTYcXgCaNhi4XLLteUL5W5ayYmg,31
80
- ocf_data_sampler-0.0.54.dist-info/RECORD,,
76
+ ocf_data_sampler-0.1.1.dist-info/LICENSE,sha256=F-Q3UFCR-BECSocV55BFDpn4YKxve9PKrm-lTt6o_Tg,1073
77
+ ocf_data_sampler-0.1.1.dist-info/METADATA,sha256=P9dwf_t7KWXN9ZhkQJrlwEH5N5ZyXY5-nCDhbgsbLXk,12173
78
+ ocf_data_sampler-0.1.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
79
+ ocf_data_sampler-0.1.1.dist-info/top_level.txt,sha256=Faob6N6cFdPc5eUpCTYcXgCaNhi4XLLteUL5W5ayYmg,31
80
+ ocf_data_sampler-0.1.1.dist-info/RECORD,,