pypsa-usa
pypsa-usa copied to clipboard
Change `get_energy_timeseries` function to pypsa dispatch function
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:
- (current)
get_energy_timeseries(n) - (proposed)
StatisticsAccessor(n).dispatch(aggregate_time=False).T
Additional Info
No response
dispatch will also bring in the demand timeseries, which will further simplify the plot_production graphs