Skip to content

Commit

Permalink
fix for uk forecast sites
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 9, 2024
1 parent e2f759a commit 940a8b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pvsite_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def pvsite_forecast_page():
site_uuid=site_selection_uuid,
)

if len(ml_models) == 0:
class Models:
name = None
ml_models = [Models()]

ys = {}
xs = {}
for model in ml_models:
Expand Down

0 comments on commit 940a8b8

Please sign in to comment.