9dcfc9d8e8af9a3c39f02fa340f97295c46d6d6e,osmnx/utils_graph.py,,add_edge_lengths,#,548
Before Change
// first load all the edges" origin and destination coordinates as a
// dataframe indexed by u, v, key
try:
coords = np.array(
[
(u, v, k, G.nodes[u]["y"], G.nodes[u]["x"], G.nodes[v]["y"], G.nodes[v]["x"])
for u, v, k in G.edges(keys=True)
]
)
except KeyError: // pragma: no cover
missing_nodes = {
str(i)
for u, v, _ in G.edges(keys=True)
After Change
// extract the edges" endpoint nodes" coordinates
try:
coords = (
(u, v, k, G.nodes[u]["y"], G.nodes[u]["x"], G.nodes[v]["y"], G.nodes[v]["x"])
for u, v, k in G.edges
)
except KeyError: // pragma: no cover
missing_nodes = {
str(i)
for u, v, _ in G.edges(keys=True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: gboeing/osmnx
Commit Name: 9dcfc9d8e8af9a3c39f02fa340f97295c46d6d6e
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: add_edge_lengths
Project Name: gboeing/osmnx
Commit Name: 14d74470233d0eb9149ae2bab72261be8d93eb92
Time: 2020-12-03
Author: boeing@usc.edu
File Name: osmnx/stats.py
Class Name:
Method Name: basic_stats
Project Name: google/nucleus
Commit Name: 397dace4af2db3adaec1746ab4dce36ac715cdfe
Time: 2018-11-02
Author: no-reply@google.com
File Name: nucleus/util/genomics_math.py
Class Name:
Method Name: log10sumexp