pypowsybl.network.Network.get_injections¶
- Network.get_injections(all_attributes=False, attributes=None, **kwargs)[source]¶
Get a dataframe of injections
- Parameters:
all_attributes (bool) – flag for including all attributes in the dataframe, default is false
attributes (List[str] | None) – attributes to include in the dataframe. The 2 parameters are mutually exclusive. If no parameter is specified, the dataframe will include the default attributes.
kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str])
- Returns:
A dataframe of injections.
- Return type:
DataFrame
Notes
The resulting dataframe, depending on the parameters, will include the following columns:
type: the type of the injection
voltage_level_id: at which substation the injection is connected
node (optional): node where this injection is connected, in node-breaker voltage levels
bus_breaker_bus_id (optional): bus of the bus-breaker view where this injection is connected
connected:
Trueif the injection is connected to a busbus_id: bus where this injection is connected
p: the actual active production of the injection (
NaNif no loadflow has been computed)q: the actual reactive production of the injection (
NaNif no loadflow has been computed)i: the current on the injection,
NaNif no loadflow has been computed (in A)
This dataframe is indexed on the injections ID.