Skip to content
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

Unassigned variable in probabilistic GSP #91

Closed
dfulu opened this issue Oct 17, 2023 · 0 comments · Fixed by #92
Closed

Unassigned variable in probabilistic GSP #91

dfulu opened this issue Oct 17, 2023 · 0 comments · Fixed by #92
Labels
bug Something isn't working

Comments

@dfulu
Copy link
Member

dfulu commented Oct 17, 2023

On the Forecast page, if you select GSP ID 1-317 (i.e. not national) and select the pvnet_v2 model the following error message is displayed:

UnboundLocalError: local variable 'show_prob' referenced before assignment
Traceback:
File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
    exec(code, module.__dict__)
File "/app/main.py", line 271, in <module>
    page_names_to_funcs[demo_name]()
File "/app/forecast.py", line 202, in forecast_page
    if model != "cnn" and len(forecast) > 0 and show_prob:

This error doesn't occur with the cnn model

@dfulu dfulu added the bug Something isn't working label Oct 17, 2023
@dfulu dfulu mentioned this issue Oct 18, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant