Skip to content

Map improvement#130

Merged
victoriahunt merged 3 commits intodevelopfrom
map_improvement
Jul 8, 2020
Merged

Map improvement#130
victoriahunt merged 3 commits intodevelopfrom
map_improvement

Conversation

@victoriahunt
Copy link
Copy Markdown
Contributor

Summary of the purpose of the code feature: Bokeh maps of multiple types need to be uploaded to blob storage for use on the website. This PR relates to Zenhub issue PostReise #128 . Note that there is an accompanying PR in CENACS to implement the changes in the notebook that uses these code changes in plotting functions.

What the code is doing: New code to create a map of all transmission color coded by interconnection. Improved code for 6 other types of plots that are planned to be used on the website including carbon emissions and lmp maps. LMP map is also significantly sped up by implementing data segmenting through a pandas data frame rather than through indexing for color coding by value.
How urgent is this?: Not particularly urgent, but does contribute to meeting our timeline for the website soft launch this summer. I expect it takes an hour to review. Commits have already been squashed and branch has been rebased prior to PR submission.

victoriahunt and others added 2 commits June 30, 2020 15:45
segmentation code simplified, resulting in much faster plotting of lmps, important for website

fix: size_factor

remove print statements in lmp plot function, add size_factor for aesthetic improvement (ability to scale size of dots) in carbon mapping.

fix: simplify plotting

make map_risk_bind function plot either risk or bind map, depending on user input, rather than always plotting both

feat: interconnections mapping

fix: allow font change

allow font size changes on the plot_states function, which is used to color code state by renewables goals or other variables

fix: fix name of func in nb

fix: lmp speed up

segmentation code simplified, resulting in much faster plotting of lmps, important for website

fix: size_factor

remove print statements in lmp plot function, add size_factor for aesthetic improvement (ability to scale size of dots) in carbon mapping.

fix: simplify plotting

make map_risk_bind function plot either risk or bind map, depending on user input, rather than always plotting both

feat: interconnections mapping

fix: allow font change

allow font size changes on the plot_states function, which is used to color code state by renewables goals or other variables

fix: fix name of func in nb
@victoriahunt victoriahunt added the visualization Issue related to visualization label Jul 1, 2020
@victoriahunt victoriahunt added this to the Black Lives Matter milestone Jul 1, 2020
@victoriahunt victoriahunt self-assigned this Jul 1, 2020
Copy link
Copy Markdown
Collaborator

@merrielle merrielle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks awesome! I just had a couple questions and some minor variable name suggestions. Feel free to merge once you take a look at those.

Comment thread postreise/plot/plot_carbon_map.py
Comment thread postreise/plot/plot_utilization_map.py Outdated
Comment thread postreise/plot/plot_utilization_map.py Outdated
Comment thread postreise/plot/plot_interconnection_map.py Outdated
Comment thread postreise/plot/plot_interconnection_map.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

visualization Issue related to visualization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants