pypowsybl.dynamic.EventMapping.add_disconnection

EventMapping.add_disconnection(df=None, **kwargs)[source]

Creates an equipment disconnection event

Parameters:
  • df (DataFrame | None) – Attributes as a dataframe.

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – Attributes as keyword arguments.

Return type:

None

Notes

Data may be provided as a dataframe or as keyword arguments. In the latter case, all arguments must have the same length.

Valid attributes are:

  • static_id: id of the network element to disconnect

  • start_time: timestep at which the event happens

  • disconnect_only: the disconnection is made on the provided side only for branch equipment (ONE or TWO)

Examples

Using keyword arguments:

event_mapping.add_disconnection(static_id='LINE', start_time=3.3, disconnect_only='TWO')