9be64784de6d7d5ed1e85ca4bb380d40cf95b14a,mltsp/featurize_tools.py,,parse_ts_data,#,158

Before Change


        ts_data = np.loadtxt(f, delimiter=sep)
    ts_data = ts_data[:, :3]  // Only using T, M, E
    for row in ts_data:
        if len(row) < 2:
            raise custom_exceptions.DataFormatError(
                "Incomplete or improperly formatted time "
                "series data file provided.")

After Change


        raise custom_exceptions.DataFormatError(Incomplete or improperly
                                                formatted time series data file
                                                provided.)
    elif ts_data.shape[1] == 1:
        ts_data = np.c_[np.linspace(0, cfg.DEFAULT_MAX_TIME, len(ts_data)),
                        ts_data,
                        np.repeat(cfg.DEFAULT_ERROR_VALUE, len(ts_data))]
    elif ts_data.shape[1] == 2:
        ts_data = np.c_[ts_data,
                        np.repeat(cfg.DEFAULT_ERROR_VALUE, len(ts_data))]
    return ts_data.T

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: 9be64784de6d7d5ed1e85ca4bb380d40cf95b14a
Time: 2016-02-04
Author: brettnaul@gmail.com
File Name: mltsp/featurize_tools.py
Class Name:
Method Name: parse_ts_data


Project Name: neurodsp-tools/neurodsp
Commit Name: 1586d3e6de28778f2152fa780b4c59a01878f7ff
Time: 2021-02-05
Author: ryan.hammonds@utexas.edu
File Name: neurodsp/plts/time_series.py
Class Name:
Method Name: plot_time_series


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 7fffa98b9166a03b4a53fb40202d97b09e8e9036
Time: 2018-05-29
Author: eriklindernoren@gmail.com
File Name: utils/datasets.py
Class Name: ListDataset
Method Name: __getitem__