6a98de289a02db6bd0c715affac9242a52c633e3,flow/visualize/time_space_diagram.py,,get_time_space_data,#Any#Any#,76

Before Change



    // number of simulation steps
    max_time = max(max(data[veh_id]["time"]) for veh_id in data.keys())
    min_time = min(min(data[veh_id]["time"]) for veh_id in data.keys())
    num_steps = int((max_time - min_time)/dt)

    // Get the function from switcher dictionary
    func = switcher[params["scenario"]]

After Change


    all_time = []
    for veh_id in data.keys():
        all_time.extend(data[veh_id]["time"])
    all_time = np.sort(np.unique(all_time))

    // Get the function from switcher dictionary
    func = switcher[params["scenario"]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: flow-project/flow
Commit Name: 6a98de289a02db6bd0c715affac9242a52c633e3
Time: 2019-06-10
Author: akreidieh@gmail.com
File Name: flow/visualize/time_space_diagram.py
Class Name:
Method Name: get_time_space_data


Project Name: pfnet/optuna
Commit Name: 4acb2e669d287af76b2936b42d801b7d1c818c4d
Time: 2019-12-01
Author: t.ohmae.nx01@gmail.com
File Name: examples/skimage_lbp_simple.py
Class Name:
Method Name: load_data


Project Name: dmnfarrell/pandastable
Commit Name: 7ec388b32cc9cd89ed829a95911319f2e29341bc
Time: 2015-09-01
Author: farrell.damien@gmail.com
File Name: pandastable/stats.py
Class Name: StatsViewer
Method Name: plotRegression