pypowsybl.network.Network.update_voltage_levels#
- Network.update_voltage_levels(df=None, **kwargs)[source]#
Update voltage levels with data provided as a
DataFrame
or as named arguments.- Parameters:
df (Optional[DataFrame]) – the data to be updated, as a dataframe.
kwargs (Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]) – 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 :
high_voltage_limit
low_voltage_limit
nominal_v
fictitious
See also
Examples
Some examples using keyword arguments:
network.update_voltage_levels(id='VL-1', high_voltage_limit=420) network.update_voltage_levels(id=['VL-1', 'VL-2'], low_voltage_limit=[385, 390])