Skip to content

Commit

Permalink
add notes, remove hanging assert
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanb committed Dec 3, 2017
1 parent 919307f commit 74bb074
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion peartree/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ def populate_graph(G: nx.MultiDiGraph,
# the various feeds loaded into the graph
sid_lookup = {}

# Generate a merge of the wait time data and the feed stops data that will
# be used for both the addition of new stop nodes and the addition of
# cross feed edges later on (that join one feeds stops to the other if
# they are within the connection threshold).
stops_df = _merge_stop_waits_and_attributes(wait_times_by_stop, feed.stops)
assert len(stops_df) == len(wait_times_by_stop)

for i, row in stops_df.iterrows():
sid = str(row.stop_id)
Expand Down

0 comments on commit 74bb074

Please sign in to comment.