pypowsybl.network.Network.disconnect

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

Disconnects a connectable element’s terminal or terminals.

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

  • operate_disconnectors (bool) – Whether disconnectors can be opened during disconnection.

  • operate_fictitious (bool) – Whether fictitious switches can be opened during disconnection.

Returns:

True if the disconnection was successful, False otherwise.

Return type:

bool