floatcsep.utils.parse_timedelta_string

floatcsep.utils.parse_timedelta_string(window, exp_class='ti')[source]

Parses a float or string representing the testing time window length

Note

Time-independent experiments defaults to year as time unit whereas time-dependent to days

Parameters:
  • window (str, int) – length of the time window

  • exp_class (str) – experiment class

Returns:

Formatted str representing the length and unit (year, month, week, day) of the time window