pypowsybl.network.Network.update_dc_nodes

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

Update dc nodes 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:

  • v

  • fictitious

See also

get_dc_nodes()

Examples

Some examples using keyword arguments:

network.update_dc_nodes(id='DN1', v=400.0)
network.update_dc_nodes(id=['DN1', 'DN2'], v=[400.0, 63.5])