pypsa.Network.set_investment_periods#
- Network.set_investment_periods(periods: Sequence) None #
Set the investment periods of the network.
If the network snapshots are a pandas.MultiIndex, the investment periods have to be a subset of the first level. If snapshots are a single index, they and all time-series are repeated for all periods. This changes the network snapshots to be a MultiIndex (inplace operation) with the first level being the investment periods and the second level the snapshots.
- Parameters:
n (pypsa.Network)
periods (list) – List of periods to be selected/initialized.
- Return type:
None.