pypowsybl.network.revert_connect_voltage_level_on_line#

revert_connect_voltage_level_on_line(network, df=None, raise_exception=True, reporter=None, report_node=None, **kwargs)[source]#

This method reverses the action done in the connect_voltage_level_on_line method. It replaces 2 existing lines (with the same voltage level at one of their side) with a new line, and eventually removes the voltage level in common (switching voltage level), if it contains no equipments anymore, except bus or bus bar section.

Parameters:
  • network (Network) – the network

  • df (DataFrame | None) – attributes as a dataframe, it should contain: line1_id: The id of the first existing line line2_id: The id of the second existing line line_id: The id of the new line to be created line_name: The name of the line to be created (default to line_id)

  • raise_exception (bool) – optionally, whether the calculation should throw exceptions. In any case, errors will be logged. Default is True.

  • reporter (ReportNode | None) – optionally, the reporter to be used to create an execution report, default is None (no report).

  • **kwargs (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) – attributes as keyword arguments

  • report_node (ReportNode | None) –

  • **kwargs

Return type:

None