compute-regions.py

changeset 125
f191a394697a
parent 124
c3b022f51704
child 126
369e242edc5d
equal deleted inserted replaced
124:c3b022f51704 125:f191a394697a
8 8
9 representatives = {} 9 representatives = {}
10 10
11 regions = parse_regions(sys.argv[2]) 11 regions = parse_regions(sys.argv[2])
12 bus_stops = {} 12 bus_stops = {}
13 block_factor = 0.01 13 block_factor = 0.005
14 14
15 class Blockmap: 15 class Blockmap:
16 def __init__(self, default = None): 16 def __init__(self, default = None):
17 from collections import defaultdict 17 from collections import defaultdict
18 self.blocks = default or defaultdict(set) 18 self.blocks = default or defaultdict(set)

mercurial