Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-e-h-p committed Feb 18, 2025
1 parent 93ee11b commit 374d233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions ocf_data_sampler/torch_datasets/datasets/pvnet_uk.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ def __init__(
gsp_ids: List of GSP IDs to create samples for. Defaults to all
"""

config = load_yaml_configuration(config_filename)

# Validate channels for NWP and satellite data
# config = load_yaml_configuration(config_filename)
config: Configuration = load_yaml_configuration(config_filename)
validate_nwp_channels(config)
validate_satellite_channels(config)

Expand Down
4 changes: 1 addition & 3 deletions ocf_data_sampler/torch_datasets/datasets/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def __init__(
"""

config: Configuration = load_yaml_configuration(config_filename)

# Validate channels for NWP and satellite data
validate_nwp_channels(config)
validate_satellite_channels(config)

Expand Down Expand Up @@ -242,7 +240,7 @@ def process_and_combine_site_sample_dict(

if "sat" in dataset_dict:
da_sat = dataset_dict["sat"]

# Standardise
da_sat = (da_sat - RSS_MEAN) / RSS_STD
data_arrays.append(("satellite", da_sat))
Expand Down

0 comments on commit 374d233

Please sign in to comment.