pypowsybl.network.Network.update_lines#

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

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

Parameters:
Return type:

None

Notes

Attributes that can be updated are:

  • r

  • x

  • g1

  • b1

  • g2

  • b2

  • p1

  • q1

  • p2

  • q2

  • connected1

  • connected2

  • fictitious

See also

get_lines()

Examples

Some examples using keyword arguments:

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