pypowsybl.network.revert_connect_voltage_level_on_line#

revert_connect_voltage_level_on_line(network, deprecated_line1_id=None, deprecated_line2_id=None, deprecated_line_id=None, deprecated_line_name=None, 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) – deprecated, use report_node instead

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

  • deprecated_line1_id (str | None) – this argument is deprecated, use the dataframe instead

  • deprecated_line2_id (str | None) – this argument is deprecated, use the dataframe instead

  • deprecated_line_id (str | None) – this argument is deprecated, use the dataframe instead

  • deprecated_line_name (str | None) – this argument is deprecated, use the dataframe instead

  • **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

Return type:

None