pypowsybl.network.Network.update_dc_switches¶
- Network.update_dc_switches(df=None, **kwargs)[source]¶
Update DC switches with data provided as a dataframe or as named arguments.
- Parameters:
df (DataFrame | None) – the data to be updated, as a dataframe.
kwargs (ArrayLike) – the data to be updated, as named arguments. Arguments can be single values or any type of sequence. In the case of sequences, all arguments must have the same length.
- Return type:
None
Notes
Attributes that can be updated are:
name
open
r
fictitious
See also
Examples
Some examples using keyword arguments:
network.update_dc_switches(id='DS1', r=0.5) network.update_dc_switches(id='DS1', open=True) network.update_dc_switches(id=['DS1', 'DS2'], r=[0.5, 0.0])