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

@@ -133,7 +133,7 @@ class AbstractPVNetUKDataset(PickleCacheMixin, Dataset):
133
133
  t0: init-time for sample
134
134
  location: location of the sample
135
135
  """
136
- numpy_modalities = []
136
+ numpy_modalities = [{"t0": t0.timestamp()}]
137
137
 
138
138
  if "nwp" in dataset_dict:
139
139
  nwp_numpy_modalities = {}
@@ -267,10 +267,8 @@ class PVNetUKRegionalDataset(AbstractPVNetUKDataset):
267
267
 
268
268
  @override
269
269
  def __getitem__(self, idx: int) -> NumpySample:
270
- # Get the coordinates of the sample
271
-
272
- idx = int(idx)
273
270
 
271
+ # Get the coordinates of the sample
274
272
  if idx >= len(self):
275
273
  raise ValueError(f"Index {idx} out of range for dataset of length {len(self)}")
276
274
 
@@ -76,7 +76,7 @@ def process_and_combine_datasets(
76
76
  means_dict: Nested dictionary of mean values for the input data sources
77
77
  stds_dict: Nested dictionary of std values for the input data sources
78
78
  """
79
- numpy_modalities = []
79
+ numpy_modalities = [{"t0": t0.timestamp()}]
80
80
 
81
81
  if "nwp" in dataset_dict:
82
82
  nwp_numpy_modalities = {}
@@ -262,8 +262,6 @@ class SitesDataset(PickleCacheMixin, Dataset):
262
262
  @override
263
263
  def __getitem__(self, idx: int) -> dict:
264
264
 
265
- idx = int(idx)
266
-
267
265
  # Get the coordinates of the sample
268
266
  t0, site_id = self.valid_t0_and_site_ids.iloc[idx]
269
267
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocf-data-sampler
3
- Version: 0.5.26
3
+ Version: 0.5.28
4
4
  Author: James Fulton, Peter Dudfield
5
5
  Author-email: Open Climate Fix team <info@openclimatefix.org>
6
6
  License: MIT License
@@ -42,8 +42,8 @@ ocf_data_sampler/select/select_spatial_slice.py,sha256=NB6NtZBc_Mb5zPCItzBIEa_Nr
42
42
  ocf_data_sampler/select/select_time_slice.py,sha256=cpkdovJMvcjxSGfq9G0OJK5aDAeCXg7exWYrJnR4N2w,4116
43
43
  ocf_data_sampler/torch_datasets/datasets/__init__.py,sha256=o0SsEXXZ6k9iL__5_RN1Sf60lw_eqK91P3UFEHAD2k0,102
44
44
  ocf_data_sampler/torch_datasets/datasets/picklecache.py,sha256=b8T5lgKfiPXLwuVQuFpCQBlU-HNBrA-Z-eSwYICKvsQ,1350
45
- ocf_data_sampler/torch_datasets/datasets/pvnet_uk.py,sha256=n0NYbhrMR_LtGz4EiryljeQG-tI4fWfJLifKclMThcU,12367
46
- ocf_data_sampler/torch_datasets/datasets/site.py,sha256=UYixlQ4xuHG6FUGpgUWWWi6cmw8ZJ2qIvd07i3vp2AY,15879
45
+ ocf_data_sampler/torch_datasets/datasets/pvnet_uk.py,sha256=Tpf1zVPtBy-815n__-zgsTeNRxlxjLwuu6UgCCyIEL0,12365
46
+ ocf_data_sampler/torch_datasets/datasets/site.py,sha256=9WOEMkqqzG_SziP3uJ7YFBKnG8Gu7yHolB0UFNLyvEg,15877
47
47
  ocf_data_sampler/torch_datasets/sample/__init__.py,sha256=GL84vdZl_SjHDGVyh9Uekx2XhPYuZ0dnO3l6f6KXnHI,100
48
48
  ocf_data_sampler/torch_datasets/sample/base.py,sha256=cQ1oIyhdmlotejZK8B3Cw6MNvpdnBPD8G_o2h7Ye4Vc,2206
49
49
  ocf_data_sampler/torch_datasets/sample/site.py,sha256=40NwNTqjL1WVhPdwe02zDHHfDLG2u_bvCfRCtGAtFc0,1466
@@ -59,7 +59,7 @@ ocf_data_sampler/torch_datasets/utils/valid_time_periods.py,sha256=xcy75cVxl0Wrg
59
59
  ocf_data_sampler/torch_datasets/utils/validation_utils.py,sha256=YqmT-lExWlI8_ul3l0EP73Ik002fStr_bhsZh9mQqEU,4735
60
60
  scripts/download_gsp_location_data.py,sha256=rRDXMoqX-RYY4jPdxhdlxJGhWdl6r245F5UARgKV6P4,3121
61
61
  scripts/refactor_site.py,sha256=skzvsPP0Cn9yTKndzkilyNcGz4DZ88ctvCJ0XrBdc2A,3135
62
- ocf_data_sampler-0.5.26.dist-info/METADATA,sha256=NQUuT_DW3MI5F3ZFyupsHs3nfTLLU2Fo2PYzn9PxNqM,13541
63
- ocf_data_sampler-0.5.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
- ocf_data_sampler-0.5.26.dist-info/top_level.txt,sha256=deUxqmsONNAGZDNbsntbXH7BRA1MqWaUeAJrCo6q_xA,25
65
- ocf_data_sampler-0.5.26.dist-info/RECORD,,
62
+ ocf_data_sampler-0.5.28.dist-info/METADATA,sha256=cKGhFDaWytuN93oQiiW2AYpRGN5dGyqRmVJ6sdy-J3w,13541
63
+ ocf_data_sampler-0.5.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
+ ocf_data_sampler-0.5.28.dist-info/top_level.txt,sha256=deUxqmsONNAGZDNbsntbXH7BRA1MqWaUeAJrCo6q_xA,25
65
+ ocf_data_sampler-0.5.28.dist-info/RECORD,,