pypowsybl.network.replace_tee_point_by_voltage_level_on_line#
- replace_tee_point_by_voltage_level_on_line(network, df=None, raise_exception=True, reporter=None, report_node=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 (DataFrame | None) –
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, true.
reporter (ReportNode | None) – an optional reporter to get functional logs.
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) –
- 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.