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=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) – deprecated, use report_node instead
report_node (ReportNode | None) – an optional reporter to get functional logs.
deprecated_tee_point_line1 (str | None) – this argument is deprecated, use the dataframe instead
deprecated_tee_point_line2 (str | None) – this argument is deprecated, use the dataframe instead
deprecated_tee_point_line_to_remove (str | None) – this argument is deprecated, use the dataframe instead
deprecated_bbs_or_bus_id (str | None) – this argument is deprecated, use the dataframe instead
deprecated_new_line1_id (str | None) – this argument is deprecated, use the dataframe instead
deprecated_new_line2_id (str | None) – this argument is deprecated, use the dataframe instead
deprecated_new_line1_name (str | None) – this argument is deprecated, use the dataframe instead
deprecated_new_line2_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
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.