comparison globalneighbors/grid.py @ 20:2fef925fbf37

display country + population in autocomplete drop down
author Jeff Hammel <k0scist@gmail.com>
date Sun, 25 Jun 2017 16:12:08 -0700
parents 4583d0d9331a
children 22c384fe954d
comparison
equal deleted inserted replaced
19:811adc9736eb 20:2fef925fbf37
76 76
77 77
78 class GriddedLocations(object): 78 class GriddedLocations(object):
79 79
80 def __init__(self, locations): 80 def __init__(self, locations):
81 raise NotImplementedError('TODO') 81 self.locations = locations
82 import pdb; pdb.set_trace()
82 83
83 def main(args=sys.argv[1:]): 84 def main(args=sys.argv[1:]):
84 """CLI""" 85 """CLI"""
85 86
86 # parse command line 87 # parse command line
88 options = parser.parse_args(args) 89 options = parser.parse_args(args)
89 90
90 # read locations 91 # read locations
91 city_locations = locations(parser.read_cities()) 92 city_locations = locations(parser.read_cities())
92 93
94 # make a grid
95 gridded_locations = GriddedLocations(locations)
96
93 if __name__ == '__main__': 97 if __name__ == '__main__':
94 main() 98 main()
95 99