Skip to content

Commit

Permalink
map() is not subscriptable
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jan 16, 2015
1 parent e505bbd commit b24a353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climata/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse(self):
def parse_timeseries(self, ts):
site = ts.source_info
param = ts.variable
lng, lat = map(float, site.location.geo_coords[0])
lng, lat = list(map(float, site.location.geo_coords[0]))

# FIXME: This assumes there is only one values array, which might not
# always be the case? (Same for site_codes below and geo_coords above.)
Expand Down

0 comments on commit b24a353

Please sign in to comment.