-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md #223
Merged
Merged
Update README.md #223
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e4ff180
Update README.md
ADIMANV 4604122
Update README.md
ADIMANV 5b9a51f
Update README.md
ADIMANV 4591bc9
Update README.md
ADIMANV 323577b
Update README.md
ADIMANV f1f7265
Update README.md
ADIMANV c044ca1
Update README.md
ADIMANV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,58 @@ | ||
# uk analysis dashboard | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-) | ||
[![ease of contribution: easy](https://img.shields.io/badge/ease%20of%20contribution:%20easy-32bd50)](https://github.com/openclimatefix#how-easy-is-it-to-get-involved) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
peterdudfield marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Internal dashboard for OCF to track UK forecast statistics. | ||
Internal dashboard for OCF to track forecast statistics and log the historical data of the forecast performance. | ||
|
||
The analysis dashboard is a tool that was developed for OCF’s internal use and continues to evolve. | ||
|
||
Built with [Streamlit](https://streamlit.io/), a Python-based framework made specifically for creating data apps, the dashboard tracks and displays Quartz Solar and other data model statistics, such as mean absolute error (MAE) on both the national and GSP level. The database provides the error statistic using Sheffield Solar's PVLive day-after updated values as the baseline --the larger the error, the less accurate the forecast. | ||
Built with [Streamlit](https://streamlit.io/), a Python-based framework made specifically for creating data apps, the dashboard tracks and displays Quartz Solar and other data model statistics, such as mean absolute error (MAE), normalized mean absolute error (nMAE) for all the client sites. The database provides the error statistic using comparing the live generation with the forecast provided. Internally it has the option of chosing the forecast horizion to check the performance with genration. The larger the error, the less accurate the forecast. | ||
|
||
Thanks to the analysis dashboard, OCF has a valuable feedback tool for understanding the accuracy of both the Quartz Solar forecast and other models in production. | ||
Thanks to the analysis dashboard, OCF has a valuable feedback tool for understanding the accuracy of the forecasts being provided to it's clients. | ||
|
||
## Installation | ||
You can install the `analysis-dashboard` package directly from GitHub. | ||
|
||
In the main project folder, install requirements: | ||
`pip install -r requirements.txt` or `pip3 install -r requirements.txt`. | ||
|
||
```shell | ||
pip install -r requirements.txt | ||
``` | ||
or | ||
|
||
```shell | ||
pip3 install -r requirements.txt | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i would just do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now its duplcated, so just have one install instruction |
||
|
||
Run `streamlit hello` to check that Streamlit installed. A "Welcome to Streamlit!" page should open in the browser. | ||
|
||
Create a login secret: `echo "password = example" > src/.streamlit/secrets.toml`. | ||
Create a login secret: ` | ||
```shell | ||
echo "password = example" > src/.streamlit/secrets.toml | ||
``` | ||
|
||
## Database connection | ||
|
||
To run the app locally, you'll need to connect it to the `forecast development database` | ||
|
||
OCF team members can connect to the `forecast development database` using [these Notion instructions](https://www.notion.so/openclimatefix/Connecting-to-AWS-RDS-bf35b3fbd61f40df9c974c240e042354). Add `DB_URL= (db_url from notion documents)` to a `secrets.toml` file. Follow the instructions in the Notion document to connect to the database v. | ||
|
||
Run app: `cd src && streamlit run main.py`. | ||
## files | ||
Run app: | ||
``` shell | ||
cd src && streamlit run main.py | ||
``` | ||
|
||
## Files | ||
### main.py | ||
|
||
`main.py` contains functions for the `home page` of the app, which focuses on MAE for the OCF `Quartz Solar` forecast. | ||
|
||
### main_india.py | ||
|
||
`main_india.py` contains functions for the `home page` of the app, which focuses on MAE for the OCF `Quartz Emnergy` forecast. | ||
|
||
peterdudfield marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### forecast.py | ||
|
||
`forecast.py` contains functions for the `forecast page`. The forecast page looks at how well each of OCF's forecast models is performing compared to `PVLive updated` truth values. | ||
|
@@ -46,11 +67,11 @@ Run app: `cd src && streamlit run main.py`. | |
|
||
### pvsite_forecast.py | ||
|
||
TODO | ||
`pvsite_forecast.py` contains the formulas and the metrics used to calculate MAE, nMAE and penalty incured against all sites. | ||
|
||
### site_toolbox.py | ||
|
||
TODO | ||
`site_toolbox.py` is a page on the dashboard that can be used to get details of any particular site that OCF provides forecast to. | ||
|
||
### plots/make_pinball_and_exceedance_plots.py | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ti should be hard - thats what would put it as ont he main page