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

update color and label dictionaries to include default values for curtailments #366

Merged
merged 2 commits into from
Jan 6, 2021

Conversation

BainanXia
Copy link
Collaborator

Pull Request Etiquette doc

Purpose

This change mainly serves analyze_pg refactor in PostREISE. Specifically for time series generation stack plot, previously we import type2label and type2color dicts and add these missing entries with hardcoded values in the plot function. After the refactor, the plot function generates the figure with default values in these updated dicts and provides optional parameters for the user to overwrite colors and/or labels for a subset of entires in the dicts. The new plot function should work properly with default values without user specified parameters.

What the code is doing

Add a few new entries to the existing static dictionaries.

Where to look

/powersimdata/network/usa_tamu/constants/plants.py

Time estimate

2min

@BainanXia BainanXia self-assigned this Jan 6, 2021
@BainanXia BainanXia merged commit a0a20e8 into develop Jan 6, 2021
@BainanXia BainanXia deleted the bainan/update_color_label_dict branch January 6, 2021 21:07
BainanXia added a commit that referenced this pull request Jan 6, 2021
@ahurli ahurli mentioned this pull request Mar 11, 2021
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