Skip to content

Conversation

@peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Nov 20, 2025

Pull Request

Description

Add a new forecast page that gets data from the dashboard

  • dataplatform/forecast/main.py - main forecast page
  • dataplatform/forecast/data.py to get data
  • dataplatform/forecast/cache.py for caching functions
  • dataplatform/forecast/constant.py for constatns
  • dataplatform/forecast/plot.py for plotting functions
  • dataplatform/forecast/setup.py for setting up the page

There are the following sections

  • Time Series plot
  • Metric vs forecast horizon
  • summary stats
  • Daily Metrics plots
Screenshot 2025-11-26 at 15 12 29 Screenshot 2025-11-26 at 15 12 36 Screenshot 2025-11-26 at 11 47 08

https://github.com/openclimatefix/client-private/issues/154

How Has This Been Tested?

  • Tested on dev, several people have played with it

Could add lots of units tests, to check it works

UAT

  • Does the page load
  • Can I select Nation
  • Can I select GSP
  • Can I select two forecasters
  • Can I change the start date and the plots update respectively
  • Can I change the end date and the plots update respectively
  • Forecast type: Can i select, "Current"
  • Forecast type: Can i select, "Horizon"
  • Forecast type: Can i select, "Horizon" and change the horizon
  • Forecast type: Can i select, "t0s"
  • Forecast type: Can i select, "t0s" and select different tos
  • Can i change the units to GW
  • Metrics, can i select MAE
  • Metrics, can i select ME

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants