dqa.tasks.time_series.ResampleByTime#
- class dqa.tasks.time_series.ResampleByTime(sampling_time: float, sampling_time_name: str, length: str | int, kind: str = 'linear', **kwargs)#
Resamples a data row with known sampling time to a chosen new sampling time.
The values are interpolated.
- Parameters:
sampling_time (float) – The new sampling time.
sampling_time_name (str) – The name for which the old sampling time is registered in the metadata for each input row.
length (str or int) – The number of entries in the result. Either this is given directly as an int in samples or a string value is passed and the result length is adjusted to the length (in time, not necessarily samples) of the corresponding data row in the measurement.
kind (str, default='linear') – The kind of interpolation as in scipy.interpolation.interp1d.
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