Skip to content

Commit

Permalink
Update save batches for PV Site
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Jan 19, 2024
1 parent 25e033d commit e52a13a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/save_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import torch
from ocf_datapipes.training.pvnet import pvnet_datapipe
from ocf_datapipes.training.windnet import windnet_datapipe
from ocf_datapipes.training.pvnet_site import pvnet_site_datapipe
from omegaconf import DictConfig, OmegaConf
from sqlalchemy import exc as sa_exc
from torch.utils.data import DataLoader
Expand Down Expand Up @@ -63,6 +64,8 @@ def _get_datapipe(config_path, start_time, end_time, batch_size, renewable: str
data_pipeline_fn = pvnet_datapipe
elif renewable == "wind":
data_pipeline_fn = windnet_datapipe
elif renewable == "pv_india":
data_pipeline_fn = pvnet_site_datapipe
else:
raise ValueError(f"Unknown renewable: {renewable}")
data_pipeline = data_pipeline_fn(
Expand Down

0 comments on commit e52a13a

Please sign in to comment.