Skip to content

Commit e52a13a

Browse files
committed
Update save batches for PV Site
1 parent 25e033d commit e52a13a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/save_batches.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import torch
3131
from ocf_datapipes.training.pvnet import pvnet_datapipe
3232
from ocf_datapipes.training.windnet import windnet_datapipe
33+
from ocf_datapipes.training.pvnet_site import pvnet_site_datapipe
3334
from omegaconf import DictConfig, OmegaConf
3435
from sqlalchemy import exc as sa_exc
3536
from torch.utils.data import DataLoader
@@ -63,6 +64,8 @@ def _get_datapipe(config_path, start_time, end_time, batch_size, renewable: str
6364
data_pipeline_fn = pvnet_datapipe
6465
elif renewable == "wind":
6566
data_pipeline_fn = windnet_datapipe
67+
elif renewable == "pv_india":
68+
data_pipeline_fn = pvnet_site_datapipe
6669
else:
6770
raise ValueError(f"Unknown renewable: {renewable}")
6871
data_pipeline = data_pipeline_fn(

0 commit comments

Comments
 (0)