4bbcc06debeba77d2f8b80573801f2fcd726f306,osmnx/speed.py,,add_edge_travel_times,#Any#Any#,119
Before Change
// add travel time attribute to graph edges
edges["travel_time"] = travel_time.round(precision).values
edge_times = edges[["u", "v", "key", "travel_time"]].set_index(["u", "v", "key"]).iloc[:, 0]
nx.set_edge_attributes(G, values=edge_times, name="travel_time")
return G
After Change
// add travel time attribute to graph edges
edges["travel_time"] = travel_time.round(precision).values
nx.set_edge_attributes(G, values=edges["travel_time"], name="travel_time")
return G
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: gboeing/osmnx
Commit Name: 4bbcc06debeba77d2f8b80573801f2fcd726f306
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/speed.py
Class Name:
Method Name: add_edge_travel_times
Project Name: gboeing/osmnx
Commit Name: 60c2404f95faf88c407b7f555ae2863aa48eadea
Time: 2020-11-18
Author: boeing@usc.edu
File Name: osmnx/speed.py
Class Name:
Method Name: add_edge_speeds
Project Name: gboeing/osmnx
Commit Name: 4bbcc06debeba77d2f8b80573801f2fcd726f306
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/speed.py
Class Name:
Method Name: add_edge_travel_times
Project Name: gboeing/osmnx
Commit Name: 60c2404f95faf88c407b7f555ae2863aa48eadea
Time: 2020-11-18
Author: boeing@usc.edu
File Name: osmnx/speed.py
Class Name:
Method Name: add_edge_travel_times
Project Name: gboeing/osmnx
Commit Name: 4bbcc06debeba77d2f8b80573801f2fcd726f306
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/speed.py
Class Name:
Method Name: add_edge_speeds