after

typhoon.test.ranges.after(t)

Defines a time range from t to latest possible value. This function is used to have more readable code on automated tests.

Parameters:

t (float or Timedelta) – Time from this value onwards will be contained in the range.

Returns:

Range as a tuple (t, +inf)

Return type:

tuple

Notes

The latest time considered (+inf) is defined as td.max (maximum allowed timedelta value) that, when used in analysis functions, will default to maximum time point available in the timeseries analyzed.

Examples

Pure numbers are interpreted as seconds.

>>> at_t=after(1)

Using a string with units:

>>> at_t=after('1ms')