pypsa-usa icon indicating copy to clipboard operation
pypsa-usa copied to clipboard

Change `get_energy_timeseries` function to pypsa dispatch function

Open trevorb1 opened this issue 1 year ago • 1 comments

Feature Request

We should change our get_energy_timeseries(n) function to the pypsa.statistics.StatisticsAccessor.dispatch() method. The advantage of this is that we can simplify our code and take advantage of pypsa testing their functions. Note, we need to double check we care assuming same logic for link power dispatch

Suggested Solution

I believe these two are equivalent:

  1. (current) get_energy_timeseries(n)
  2. (proposed) StatisticsAccessor(n).dispatch(aggregate_time=False).T

Additional Info

No response

trevorb1 avatar Apr 01 '24 18:04 trevorb1

dispatch will also bring in the demand timeseries, which will further simplify the plot_production graphs

trevorb1 avatar Apr 01 '24 18:04 trevorb1