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

Improve styling and enable URL parameters #2

Merged
merged 2 commits into from
Mar 1, 2019
Merged

Conversation

tranberg
Copy link
Contributor

Everything now looks much better. I've only changed styling. No changes to layout or functionality. All settings seem to be working locally for me.

@tranberg
Copy link
Contributor Author

It's now possible to set any of the parameters via URL parameters e.g.:

http://127.0.0.1:5002/?year=1990&country=DK&scenario=2050&freq=30

The advanced cost parameters are not supported yet.

It's optional which parameters are specified in the URL. The ones that are not/incorrectly specified will default to the default values from before this pull request.

Also, when the site is loaded the default results are not shown. Figures appear upon successful solving. I introduced a button to show a screenshot of the default results instead. This removes any possible confusion, since visitors might think that the results displayed upon initial loading correspond with the URL parameters - which is not true yet.

@tranberg tranberg changed the title Improve CSS styling using Bootstrap Improve styling and enable URL parameters Feb 28, 2019
@nworbmot nworbmot merged commit 4cda991 into PyPSA:master Mar 1, 2019
@nworbmot
Copy link
Member

nworbmot commented Mar 1, 2019

Cool, thanks Bo! Will play with it this morning.

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.

2 participants