pypowsybl.network.Network.get_dc_switches

Network.get_dc_switches(all_attributes=False, attributes=None, **kwargs)[source]

Get a dataframe of DC switches.

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 (ArrayLike) – the data to be selected, as named arguments.

Returns:

the DC switches dataframe

Return type:

DataFrame

Notes

The resulting dataframe, depending on the parameters, will include the following columns:

  • name: optional human-readable name

  • dc_node1_id: identifier of the first DC node the switch connects

  • dc_node2_id: identifier of the second DC node the switch connects

  • kind: the kind of DC switch (BREAKER or DISCONNECTOR)

  • open: True if the switch is open, False if it is closed

  • r: resistance of the DC switch (in Ohm)

  • fictitious (optional): True if the element is part of the model and not of the actual network

This dataframe is indexed on the DC switch ID.