comparison iwws.py @ 11:e5ba2e76d1b0

Only look at keys which exist. Newer pywws has illuminance which isn't reported everywhere.
author Daniel O'Connor <darius@dons.net.au>
date Fri, 03 Feb 2012 23:48:17 +1030
parents 2d9ee2b3ae82
children a0213f0e707b
comparison
equal deleted inserted replaced
10:15fed86d9fac 11:e5ba2e76d1b0
66 r = {} 66 r = {}
67 for k in store.key_list: 67 for k in store.key_list:
68 r[k] = [] 68 r[k] = []
69 69
70 for d in data: 70 for d in data:
71 for k in store.key_list: 71 for k in d.keys():
72 if k == 'idx': 72 if k == 'idx':
73 t = int(dt2epoch(d[k])) 73 t = int(dt2epoch(d[k]))
74 r[k].append(t) 74 r[k].append(t)
75 else: 75 else:
76 r[k].append(d[k]) 76 r[k].append(d[k])