pypowsybl.network.Network.update_branches

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

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

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

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – 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 :

  • connected1

  • connected2

  • bus_breaker_bus1_id2

  • bus_breaker_bus2_id2

See also

get_branches()

Examples

Some examples using keyword arguments:

network.update_branches(element_id='BRANCH_ID', connected1=False, connected2=False)