Mercurial > hg > GlobalNeighbors
diff globalneighbors/read.py @ 1:1b94f3bf97e5
* limit distance function
* start gridding
* improve unicode handling
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 24 Jun 2017 14:02:14 -0700 |
parents | 5dba84370182 |
children | 7e27e874655b |
line wrap: on
line diff
--- a/globalneighbors/read.py Sat Jun 24 12:03:39 2017 -0700 +++ b/globalneighbors/read.py Sat Jun 24 14:02:14 2017 -0700 @@ -12,6 +12,7 @@ string = (str, basestring) + def read_tsv_generator(f): """read tab-separated values from file `f` into memory""" @@ -43,6 +44,7 @@ if key in fields} yield cast + def read_city_list(f, fields=None, types=types): """read cities as a list"""