pytuflow.INFO.times#
- INFO.times(filter_by=None, fmt='relative')#
Returns all the available times for the given filter.
The
filter_by
is an optional input that can be used to filter the return further. Valid filters for theINFO
class are:None
: default - returns all available times1d
node
: returns only node timeschannel
: returns only channel times[id]
: returns only data types for the given ID.[data_type]
: returns only times for the given data type.
- Parameters:
filter_by (str, optional) – The string to filter the times by.
fmt (str, optional) – The format for the times. Options are
relative
orabsolute
.
- Returns:
The available times in the requested format.
- Return type:
list[TimeLike]
Examples
>>> res = ... # Assume res is loaded result class >>> res.times() [0.0, 0.016666666666666666, ..., 3.0] >>> res.times(fmt='absolute') [Timestamp('2021-01-01 00:00:00'), Timestamp('2021-01-01 00:01:00'), ..., Timestamp('2021-01-01 03:00:00')]