Skip to content

Commit

Permalink
Merge pull request #144 from openclimatefix/issue/use-legacy
Browse files Browse the repository at this point in the history
Issue/use legacy
  • Loading branch information
peterdudfield authored Oct 16, 2024
2 parents ab185bd + b1566c5 commit 1e9eaea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pvnet_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def app(
# Set up data loader
logger.info("Creating DataLoader")

if use_day_ahead_model:
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,
Expand All @@ -251,6 +252,7 @@ def app(
)

else:
logger.info('Making OCF Data Sampler dataloader')
dataloader = get_dataloader(
config_filename=common_config_path,
t0=t0,
Expand Down

0 comments on commit 1e9eaea

Please sign in to comment.