pypsa.Network.get_active_assets

pypsa.Network.get_active_assets#

Network.get_active_assets(c: str, investment_period: int | str | Sequence | None = None) pd.Series#

Get active components mask of component type in investment period(s).

See the pypsa.descriptors.components.Component.get_active_assets().

Parameters:
  • n (pypsa.Network) – Network instance

  • c (string) – Component name

  • investment_period (int, str, Sequence) – Investment period(s) to check

Returns:

Boolean mask for active components

Return type:

pd.Series