def transform_ts_files(time_series, transform_type):
    transform, labels = TRANSFORMS_INFO_DICT[transform_type]
    output_ts_lists = transform(time_series)
    if len(labels) != len(output_ts_lists):
        raise ValueError("Number of output time series groups does not match "
                         "the number of labels provided by "
                         "`TRANSFORMS_INFO_DICT`.")
    return output_ts_lists
Apply some transformation to a list of time series and save outputs.
dataset/ETHPy150Open cesium-ml/cesium/cesium/transformation.py/transform_ts_files