pypowsybl.network.Network.connect

Network.connect(id, operate_disconnectors=False, operate_fictitious=False)[source]

Connects a connectable element’s terminal or terminals.

Parameters:
  • id (str) – The ID of the element to connect.

  • operate_disconnectors (bool) – Whether disconnectors can be closed during connection.

  • operate_fictitious (bool) – Whether fictitious switches can be closed during connection.

Returns:

True if the connection was successful, False otherwise.

Return type:

bool