-
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
feat: add code to plot shadow price data #52
Conversation
Very nice. In |
Great catch. That was in the original code and I totally missed it! I'll go fix it now. |
Sorry I missed the typo in my first message but I believe that LMP ($ per MW) would be better. Ask your office mates but I believe we can drop the h here since we are in terested in the price per MegaWatt produced. |
|
In import statements: In docstrings: Also, PyCharm complains about a lot of PEP8 violation. I can easily fix them before merging. |
Just checked and Daniel says LMP is $/mwh If I'm still getting a lot of PEP8 violations, it seems like |
8d5417f
to
7a1a05e
Compare
postreise/plot/plot_shadowprice.py
Outdated
:type scenario_id: string | ||
:param hour: the hour we will be analyzing | ||
:type hour: string | ||
:param lmp_split_points: the lmp values we have chosen to |
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.
maybe change this line to:
:param lmp_split_points: the locational marginal pricing (lmp) ...
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.
Good idea! Just updated it.
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.
Great. Thanks.
refactor: break shadowprice code into smaller functions feat: make shadowprice code work feat: automate lmp split points for busses style: fix code style and imports
Finish tests test: finish writing tests fix: remove hardcoded interconnect
style: run autopep8 more aggressively to fix style fix: Make legend titles include units docs: update lmp_split_points docstring
578bfeb
to
a77f0b7
Compare
Plotting an interesting hour:
plot_shadowprice('91', '2016-08-04 23:00:00'
Plotting a boring hour. Note the values in the legend on the left.
plot_shadowprice('91', '2016-04-12 02:00:00')
Plotting the same hour but with custom split points:
plot_shadowprice('91', '2016-04-12 02:00:00', [20,22,22.5,23,23.5])