ktk.TimeSeries.get_event_time#

TimeSeries.get_event_time(name, occurrence=0)[source]#

Get the time of the specified event.

Warning

The function get_event_time is deprecated since 0.10.0 and is scheduled to be removed in 2024.

This function was deprecated in an attempt to simplify the TimeSeries API. A similar way to achieve the same result would be to do:

temp = ts.sort_events()
times = [e.time for e in temp.events if e.name == name]
time = times[occurrence]
Parameters
  • name (str) –

  • occurrence (int) –

Return type

float