pypowsybl.network.Network.update_switches#

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

Update switches with data provided as a DataFrame or as named arguments.

Parameters:
Return type:

None

Notes

Attributes that can be updated are:

  • open

  • retained

  • fictitious

See also

get_switches()

Examples

Some examples using keyword arguments:

network.update_switches(id='BREAKER-1', open=True)
network.update_switches(id=['BREAKER-1', 'DISC-2'], open=[True, False])