-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement pie chart generation vs capacity #231
Conversation
type2color.update(resource_colors) | ||
|
||
grid = Grid(["USA"]) | ||
id2loadzone = grid.id2zone |
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.
we will need to refactor that
"cap": {"label": "Capacity", "unit": "GW", "data": {}}, | ||
} | ||
for area, area_type in zip(areas, area_types): | ||
loadzone_set = area_to_loadzone(grid, area, area_type) |
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.
we will need to refactor that too
Should we have some tests to make sure that the errors are correctly raised and we did not forget any edge cases? |
Notebook runs as expected. I would add a main title to mirror what we do in the other ones. |
Tests added. |
A markdown cell in the notebook is added which serves as a main title. |
Pie Pot --> Pie Plot |
d05041f
to
b8f018d
Compare
Good catch! Fixed. |
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.
Looks good
Pull Request doc
Purpose
Refactor pie chart plot to remove the dependency of
analyze_pg
and other functions/constants inmulti
folder.What the code is doing
Implement pie chart plot for generation vs capacity of a list of user specified areas in a list of user specified/customized scenarios
Testing
A demo notebook is added to illustrate the usage.
Where to look
Time estimate
15 min. This one is easier as expected given the major refactor carried out in the previous bar chart PR see 215