Skip to content

Commit

Permalink
rename torch Dataset to Local from 18
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Mar 4, 2024
1 parent 893dc48 commit afa9f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ml_downscaling_emulator/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Loading UKCP18 data into PyTorch"""
"""Loading UKCP Local data into PyTorch"""

import cftime
import numpy as np
Expand All @@ -13,7 +13,7 @@
)


class UKCP18Dataset(Dataset):
class UKCPLocalDataset(Dataset):
def __init__(self, ds, variables, target_variables, time_range):
self.ds = ds
self.variables = variables
Expand Down Expand Up @@ -96,7 +96,7 @@ def custom_collate(batch):
time_range = None
if include_time_inputs:
time_range = TIME_RANGE
xr_dataset = UKCP18Dataset(xr_data, variables, target_variables, time_range)
xr_dataset = UKCPLocalDataset(xr_data, variables, target_variables, time_range)
data_loader = DataLoader(
xr_dataset, batch_size=batch_size, shuffle=shuffle, collate_fn=custom_collate
)
Expand Down

0 comments on commit afa9f45

Please sign in to comment.