pypowsybl.network.Network.update_2_windings_transformers#

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

Update 2 windings transformers with data provided as a DataFrame or as named arguments.

Parameters:
  • df (DataFrame | None) – the data to be updated, as a dataframe.

  • kwargs (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[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:

  • r

  • x

  • g

  • b

  • rated_u1

  • rated_u2

  • rated_s

  • p1

  • q1

  • p2

  • q2

  • connected1

  • connected2

  • fictitious

  • selected_limits_group_1

  • selected_limits_group_2

Examples

Some examples using keyword arguments:

network.update_2_windings_transformers(id='T-1', connected1=False, connected2=False)
network.update_2_windings_transformers(id=['T-1', 'T-2'], r=[0.5, 2.0], x=[5, 10])