-
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
Aggregate curtailment time series by area #173
Conversation
086226a
to
a448a25
Compare
I may be wrong here, but it seems like So to get the same results we'd do something like: curtailment = calculate_curtailment_time_series(scenario, resources)
curtailment_by_resource_area = {r: aggregate_by_area(ts, grid) for r, ts in curtailment.items()} #new function
curtailment_by_area_resource = #some fancy list comprehension to go from [resource][area] to [area][resource] nesting Or maybe we want to refactor |
a448a25
to
42d3342
Compare
I like the idea. I will work on it. |
bd0f53d
to
1626aae
Compare
2b59b47
to
bd00a2c
Compare
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.
The new helpers functions are great, thank you for going through the work to refactor my curtailment code to be more generalizable for future features.
bd00a2c
to
62185f6
Compare
We will use them to calculate the net demand and the PG. Then the plotting should be straightforward for any pair area-resource |
379a8e2
to
5756d20
Compare
…ge functions name and usage
5756d20
to
2ee327c
Compare
Purpose
Calculate curtailment time series by area (interconnect, state name/abbreviation, load zone).
What is the code doing?
it generates a dictionary of the form:
{area name: {resource name: curtailment}}
, where curtailment is a data frame with UTC timestamps as indices and plant id as columns ore eventually a time series if there is only one plant for the resource in the area. The area and resource names will reflect what is passed to the functioncalculate_curtailment_time_series_by_area
, e.g.: