Skip to content

Commit

Permalink
trying to reconver from non-fatal errors #41 #39
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Jun 28, 2022
1 parent 3fd96cb commit b5c7aae
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 129 deletions.
7 changes: 4 additions & 3 deletions s2t_miv.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ def _createValueTuple(od, vType, end, real, sumoTime, sumoDist):


@benchmark
def upload_all_pairs(conn, tables, start, end, vType, real_routes, rep_routes, net, taz_list, startIdx=0):
def upload_all_pairs(conn, tables, start, end, vType, real_routes, rep_routes, net, startIdx=0):
stats = _parse_vehicle_info_taz(real_routes, start, end, vType)
stats.extend(_get_all_pair_stats(rep_routes, net))
if rep_routes:
stats.extend(_get_all_pair_stats(rep_routes, net))
stats.sort()
min_samples = 5
last = None
Expand Down Expand Up @@ -314,7 +315,7 @@ def main():
if os.path.isfile(options.representatives):
tables = create_all_pairs(conn, options.simkey, SP.OPTIONAL)
upload_all_pairs(conn, tables, 0, 86400, "passenger", options.real_trips,
options.representatives, readNet(options.net_file), [])
options.representatives, readNet(options.net_file))
if conn:
conn.close()

Expand Down
Loading

0 comments on commit b5c7aae

Please sign in to comment.