pypowsybl.network.Network.close_dc_switch

Network.close_dc_switch(id)[source]

Closes a DC switch.

Parameters:

id (str) – the identifier of the DC switch to close.

Returns:

True if the switch state changed (was open before), False if it was already closed.

Return type:

bool