compute-regions.py

changeset 89
438d77bca50e
parent 88
3b86597c5a88
child 124
c3b022f51704
--- a/compute-regions.py	Fri Apr 13 17:32:40 2018 +0300
+++ b/compute-regions.py	Sun Apr 15 13:51:39 2018 +0300
@@ -8,10 +8,10 @@
 
 representatives = {}
 
-regions = parse_regions(sys.argv[1])
+regions = parse_regions(sys.argv[2])
 bus_stops = {}
 
-with ZipFile('gtfs.zip') as archive:
+with ZipFile(sys.argv[1]) as archive:
 	with archive.open('stops.txt') as file:
 		for row in read_csv(map(bytes.decode, file)):
 			location = Location(float(row['stop_lat']), float(row['stop_lon']))

mercurial