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=False, reporter=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 (Optional[DataFrame]) – 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 False.

  • reporter (Optional[Reporter]) – optionally, the reporter to be used to create an execution report, default is None (no report).

  • deprecated_line1_id (Optional[str]) – this argument is deprecated, use the dataframe instead

  • deprecated_line2_id (Optional[str]) – this argument is deprecated, use the dataframe instead

  • deprecated_line_id (Optional[str]) – this argument is deprecated, use the dataframe instead

  • deprecated_line_name (Optional[str]) – this argument is deprecated, use the dataframe instead

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

Return type:

None