openego / eTraGo

Optimization of flexibility options for transmission grids based on PyPSA
GNU Affero General Public License v3.0
30 stars 13 forks source link

Calculations in plot function: calc_dispatch_per_carrier #742

Open pl0via opened 1 month ago

pl0via commented 1 month ago

There are duplicates in the resulting pd.Series of the function. Therefore, the total sum of electricity generated in the series does not match the correct total generation of the system. This is not necessarily an error, but should be kept in mind before using the function for further purposes. One may consider removing the duplicates and, additionally, adding a time scaling (> network.snapshot_weightings) so that the numerical values of the series represent the dispatch in MWh over the whole period.

calc_dispatch multiindex duplicates