pypowsybl.network.Network.create_tie_lines

Network.create_tie_lines(df=None, **kwargs)[source]

Creates tie lines from two boundary lines. Both boundary lines must have the same pairing key (formerly named UCTE Xnode code).

Parameters:
  • df (DataFrame | None) – Attributes as a dataframe.

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – Attributes as keyword arguments.

Return type:

None

Notes

Data may be provided as a dataframe or as keyword arguments. In the latter case, all arguments must have the same length.

Valid attributes are:

  • id: the identifier of the new tie line

  • name: an optional human-readable name

  • boundary_line1_id: the ID of the first boundary line It must already exist.

  • boundary_line2_id: the ID of the second boundary line It must already exist.

dangling_line1_id and dangling_line2_id are deprecated attributes, use boundary_line1_id and boundary_line2_id instead.

Examples

Using keyword arguments:

network.create_tie_lines(id='tie_line_1', boundary_line1_id='BL-1', boundary_line2_id='BL-2')