Note
Go to the end to download the full example code.
Generation Capacity Overview#
Installed capacity by technology, sourced directly from the system definition (not the simulation results). This is a useful sanity-check view: what’s actually in the model before any dispatch happens.
plot_generation_capacities returns (name, ax, dataframe) so you
can both render the chart and access the underlying capacity table for
further analysis.

/home/runner/work/GridAnalysisToolkit/GridAnalysisToolkit/src/gat/datahelpers/sienna.py:381: UserWarning: StandardLoad was not found. Use one of the following components
warnings.warn(message, UserWarning)
----- Available Components -----
RenewableNonDispatch
LoadZone
RenewableDispatch
FixedAdmittance
ACBus
Area
VariableReserve
TwoTerminalHVDCLine
ThermalStandard
Arc
PowerLoad
TapTransformer
Line
/home/runner/work/GridAnalysisToolkit/GridAnalysisToolkit/src/gat/datahelpers/sienna.py:381: UserWarning: EnergyReservoirStorage was not found. Use one of the following components
warnings.warn(message, UserWarning)
----- Available Components -----
RenewableNonDispatch
LoadZone
RenewableDispatch
FixedAdmittance
ACBus
Area
VariableReserve
TwoTerminalHVDCLine
ThermalStandard
Arc
PowerLoad
TapTransformer
Line
/home/runner/work/GridAnalysisToolkit/GridAnalysisToolkit/src/gat/datahelpers/sienna.py:381: UserWarning: HydroDispatch was not found. Use one of the following components
warnings.warn(message, UserWarning)
----- Available Components -----
RenewableNonDispatch
LoadZone
RenewableDispatch
FixedAdmittance
ACBus
Area
VariableReserve
TwoTerminalHVDCLine
ThermalStandard
Arc
PowerLoad
TapTransformer
Line
/home/runner/work/GridAnalysisToolkit/GridAnalysisToolkit/src/gat/datahelpers/sienna.py:381: UserWarning: HydroEnergyReservoir was not found. Use one of the following components
warnings.warn(message, UserWarning)
----- Available Components -----
RenewableNonDispatch
LoadZone
RenewableDispatch
FixedAdmittance
ACBus
Area
VariableReserve
TwoTerminalHVDCLine
ThermalStandard
Arc
PowerLoad
TapTransformer
Line
/home/runner/work/GridAnalysisToolkit/GridAnalysisToolkit/src/gat/datahelpers/sienna.py:381: UserWarning: HydroPumpedStorage was not found. Use one of the following components
warnings.warn(message, UserWarning)
----- Available Components -----
RenewableNonDispatch
LoadZone
RenewableDispatch
FixedAdmittance
ACBus
Area
VariableReserve
TwoTerminalHVDCLine
ThermalStandard
Arc
PowerLoad
TapTransformer
Line
/home/runner/work/GridAnalysisToolkit/GridAnalysisToolkit/src/gat/datahelpers/sienna.py:381: UserWarning: ThermalMultiStart was not found. Use one of the following components
warnings.warn(message, UserWarning)
----- Available Components -----
RenewableNonDispatch
LoadZone
RenewableDispatch
FixedAdmittance
ACBus
Area
VariableReserve
TwoTerminalHVDCLine
ThermalStandard
Arc
PowerLoad
TapTransformer
Line
generation capacity — 3 rows of capacity data
Technology Coal Gas-CC ... Nuclear PV
Area ...
1 1230.898733 770.778827 ... 447.213595 836.23
2 1149.191940 1156.168240 ... 0.000000 254.16
3 174.427635 1926.947067 ... 0.000000 2367.03
[3 rows x 6 columns]
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
import matplotlib.pyplot as plt
from gat.scenariohandlers import SiennaScenario
from gat.quickplots.system_plots import plot_generation_capacities
sienna_v4 = "../../example_data/sienna/v4"
scenario = SiennaScenario(
simulation_files=f"{sienna_v4}/simulation_store.h5",
system_file=f"{sienna_v4}/sys.json",
)
name, ax, capacity_df = plot_generation_capacities(scenario)
print(f"{name} — {len(capacity_df)} rows of capacity data")
print(capacity_df.head())
plt.tight_layout()
plt.show()
Total running time of the script: (0 minutes 0.209 seconds)