dqa.tasks.time_series.SortIntervals#

class dqa.tasks.time_series.SortIntervals(interval_start: str, interval_end: str, interval_class: str | None = None, no_interval_class: int = -1, overlap: float | Tuple[float] = 0, **kwargs)#

Sorts a list of intervals, removes intersections and fills gaps.

Parameters:
  • interval_start (str) – Name of the data row containing the interval start timestamps.

  • interval_end (str) – Name of the data row containing the interval end timestamps.

  • interval_class (str, default=None) – A data row specifying a class index for each interval. If this row does not exist, then it will be created and all intervals will be assigned the class 1. If given as None, then no classes will be assigned.

  • no_interval_class (int, default=-1) – This class index is given to all intervals in between the input intervals.

  • overlap (float or list of floats, default=0) – The resulting intervals overlap by this amount (in time). If given as a list, the first entry will be the overlap at the beginning of each interval and the second entry the overlap at the end. If given as a single number, both these values will be set equal.

Methods

finish()

Can perform actions that are required to clean up after the task has finished, e.g. close network connections etc.

in_out_default

input_output_dataset

input_output_machine

input_output_mode

input_output_name

log

modify_data_row

modify_dataset

modify_dataset_dict

modify_machine

modify_measurement

set_logging_level

transfer_metadata