google-code-export / ccc-gistemp

Automatically exported from code.google.com/p/ccc-gistemp
Other
0 stars 0 forks source link

camatch.py is broken. #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(as Ana Nelson reports in priv. comm.)

$ tool/cascrape.py 
6513 records
$ tool/camatch.py 
Traceback (most recent call last):
  File "tool/camatch.py", line 252, in <module>
    main()
  File "tool/camatch.py", line 249, in main
    table=open('input/ca.tbl', 'w'))
  File "tool/camatch.py", line 28, in match
    cadict = cametaasdict(cameta)
  File "tool/camatch.py", line 189, in cametaasdict
    return dict(itermeta())
  File "tool/camatch.py", line 188, in itermeta
    yield item['Climate Identifier'], item
KeyError: 'Climate Identifier'

Original issue reported on code.google.com by d...@ravenbrook.com on 24 Nov 2010 at 12:36

GoogleCodeExporter commented 9 years ago
Problem is that Environment Canada changed from "Climate Identifier" to 
"Climate_Identifier", and our code is way too fragile.

Original comment by d...@ravenbrook.com on 24 Nov 2010 at 12:39

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r623.

Original comment by d...@ravenbrook.com on 24 Nov 2010 at 12:58