pypowsybl.network.Network.update_buses¶
- Network.update_buses(df=None, **kwargs)[source]¶
Update buses 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:
v_mag
v_angle
fictitious
fictitious_p0
fictitious_q0
See also
Examples
Some examples using keyword arguments:
network.update_buses(id='B1', v_mag=400.0) network.update_buses(id=['B1', 'B2'], v_mag=[400.0, 63.5])