pypowsybl.network.replace_tee_point_by_voltage_level_on_line#

replace_tee_point_by_voltage_level_on_line(network, deprecated_tee_point_line1=None, deprecated_tee_point_line2=None, deprecated_tee_point_line_to_remove=None, deprecated_bbs_or_bus_id=None, deprecated_new_line1_id=None, deprecated_new_line2_id=None, deprecated_new_line1_name=None, deprecated_new_line2_name=None, df=None, raise_exception=False, reporter=None, **kwargs)[source]#

This method transforms the action done in the create_line_on_line function into the action done in the connect_voltage_level_on_line.

Parameters:
  • network (Network) – the network in which the busbar sections are.

  • df (Optional[DataFrame]) –

    Attributes as a dataframe. It should contain:

    • tee_point_line1: The ID of the existing line connecting the first voltage level to the tee point

    • tee_point_line2: The ID of the existing line connecting the tee point to the second voltage level

    • tee_point_line_to_remove: The ID of the existing line connecting the tee point to the attached voltage level

    • bbs_or_bus_id: The ID of the existing bus or bus bar section in the attached voltage level voltageLevelId, where we want to connect the new lines new line 1 and new line 2

    • new_line1_id: The ID of the new line connecting the first voltage level to the attached voltage level

    • new_line2_id: The ID of the new line connecting the second voltage level to the attached voltage level

    • new_line1_name: The optional name of the new line connecting the first voltage level to the attached voltage level

    • new_line2_name: The optional name of the new line connecting the second voltage level to the attached voltage level

  • raise_exception (bool) – whether an exception should be raised if a problem occurs. By default, false.

  • reporter (Optional[Reporter]) – an optional reporter to get functional logs.

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

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

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

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

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

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

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

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

Notes

It replaces 3 existing lines (with the same voltage level at one of their side (tee point)) with two new lines, and removes the tee point.