pypowsybl.network.Network.get_dc_lines¶
- Network.get_dc_lines(all_attributes=False, attributes=None, **kwargs)[source]¶
Get a dataframe of DC lines
- 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 DC lines.
- Return type:
DataFrame
Notes
The resulting dataframe, depending on the parameters, will include the following columns:
dc_node1_id: dc node where this dc line is connected, on side 1
dc_node2_id: dc node where this dc line is connected, on side 2
p1: the active flow on the dc line at its “1” side,
NaNif no loadflow has been computed (in MW)i1: the current on the dc line at its “1” side,
NaNif no loadflow has been computed (in A)p2: the active flow on the dc line at its “2” side,
NaNif no loadflow has been computed (in MW)i2: the current on the dc line at its “2” side,
NaNif no loadflow has been computed (in A)fictitious (optional):
Trueif the area is part of the model and not of the actual network
This dataframe is indexed on the dc line ID.