pypowsybl.dynamic.EventMapping.add_active_power_variation

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

Creates an active power variation event on generator or load

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 load or generator affected by the event

  • start_time: timestep at which the event happens

  • delta_p: active power variation

Examples

Using keyword arguments:

event_mapping.add_active_power_variation(static_id='LOAD', start_time=14, delta_p=2)