Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Aug 13, 2024
1 parent 16d035a commit e0ee716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def get_locations(ga_gsp: xr.DataArray) -> list[Location]:
return locations


class PVNetDataset(Dataset):
class PVNetUKRegionalDataset(Dataset):
def __init__(
self,
config_filename: str,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ocf_data_sampler.datasets.pvnet import PVNetDataset
from ocf_data_sampler.torch_datasets.pvnet_uk_regional import PVNetUKRegionalDataset
from ocf_datapipes.config.load import load_yaml_configuration
from ocf_datapipes.config.save import save_yaml_configuration
from ocf_datapipes.batch import BatchKey, NWPBatchKey
Expand All @@ -23,7 +23,7 @@ def pvnet_config_filename(tmp_path, config_filename, nwp_ukv_zarr_path, uk_gsp_z
def test_pvnet(pvnet_config_filename):

# Create dataset object
dataset = PVNetDataset(pvnet_config_filename)
dataset = PVNetUKRegionalDataset(pvnet_config_filename)

assert len(dataset.locations) == 317 # no of GSPs not including the National level
# NB. I have not checked this value is in fact correct, but it does seem to stay constant
Expand Down

0 comments on commit e0ee716

Please sign in to comment.