From f281f77b80fd94dfbc1632ceb5aa24063be19095 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Wed, 16 Oct 2024 11:06:35 +0100 Subject: [PATCH 1/2] use legeacy data ocf datapipes for legacy models --- pvnet_app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index ce06ac2..bec4551 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -240,7 +240,7 @@ def app( # Set up data loader logger.info("Creating DataLoader") - if use_day_ahead_model: + if not use_ocf_data_sampler: # The current day ahead model uses the legacy dataloader dataloader = get_legacy_dataloader( config_filename=common_config_path, From b1566c53e8173f0e51148807ef20319019c67bae Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Wed, 16 Oct 2024 11:07:18 +0100 Subject: [PATCH 2/2] add logging --- pvnet_app/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index bec4551..306ef0b 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -241,6 +241,7 @@ def app( logger.info("Creating DataLoader") if not use_ocf_data_sampler: + logger.info('Making OCF datapipes dataloader') # The current day ahead model uses the legacy dataloader dataloader = get_legacy_dataloader( config_filename=common_config_path, @@ -251,6 +252,7 @@ def app( ) else: + logger.info('Making OCF Data Sampler dataloader') dataloader = get_dataloader( config_filename=common_config_path, t0=t0,