pytuflow.LP2D.times

Contents

pytuflow.LP2D.times#

LP2D.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. Because all locations share the same timestamps, the filter_by argument has no practical effect for this class.

Parameters:
  • filter_by (str, optional) – The string to filter the times by.

  • fmt (str, optional) – The format for the times. Options are relative or absolute.

Returns:

The available times in the requested format.

Return type:

list[TimeLike]

Examples

>>> lp = LP2D('/path/to/model_LP_NAME_H.csv')
>>> lp.times()
[0.0, 0.016666666666666666, ..., 3.0]