Revision | e788865417c80884c49f3e4f6dd112ef431dcf89 (tree) |
---|---|
Zeit | 2009-09-22 18:13:25 |
Autor | lorenzo |
Commiter | lorenzo |
I simply removed some unnecessary comments from the code and set the time
slice duration to 20 sec.
@@ -86,7 +86,7 @@ | ||
86 | 86 | |
87 | 87 | loader = Loader(sys.argv[1:], decode=1, xxtea_crypto_key=XXTEA_CRYPTO_KEY, load_contacts=1, unique_contacts=0, load_sightings=1, unique_sightings=0) |
88 | 88 | |
89 | -analyzer = PowerAnalyzer(loader, time_delta=60, tag_id_min=1100, tag_id_max=2047) | |
89 | +analyzer = PowerAnalyzer(loader, time_delta=20, tag_id_min=1100, tag_id_max=2047) | |
90 | 90 | |
91 | 91 | |
92 | 92 |
@@ -95,67 +95,6 @@ | ||
95 | 95 | if len(frame['boot_count'][tag_id]) < 1: |
96 | 96 | continue |
97 | 97 | |
98 | - #As Ciro put it | |
99 | - #print frame['time'], tag_id, frame['count'][tag_id][0], frame['count'][tag_id][1], frame['count'][tag_id][2], frame['count'][tag_id][3], len(frame['boot_count'][tag_id]),list(frame['boot_count'][tag_id])[0] | |
100 | - | |
101 | - | |
102 | -# a=b=c=d=e=f=g=-1 | |
103 | - | |
104 | -# if (len(list(frame['antenna'][tag_id]))==1): | |
105 | -# a=list(frame['antenna'][tag_id])[0] | |
106 | - | |
107 | -# elif (len(list(frame['antenna'][tag_id]))==2): | |
108 | -# a=list(frame['antenna'][tag_id])[0] | |
109 | -# b=list(frame['antenna'][tag_id])[1] | |
110 | - | |
111 | -# elif (len(list(frame['antenna'][tag_id]))==3): | |
112 | -# a=list(frame['antenna'][tag_id])[0] | |
113 | -# b=list(frame['antenna'][tag_id])[1] | |
114 | -# c=list(frame['antenna'][tag_id])[2] | |
115 | - | |
116 | -# elif (len(list(frame['antenna'][tag_id]))==4): | |
117 | - | |
118 | -# a=list(frame['antenna'][tag_id])[0] | |
119 | -# b=list(frame['antenna'][tag_id])[1] | |
120 | -# c=list(frame['antenna'][tag_id])[2] | |
121 | -# d=list(frame['antenna'][tag_id])[3] | |
122 | - | |
123 | -# elif (len(list(frame['antenna'][tag_id]))==5): | |
124 | - | |
125 | -# a=list(frame['antenna'][tag_id])[0] | |
126 | -# b=list(frame['antenna'][tag_id])[1] | |
127 | -# c=list(frame['antenna'][tag_id])[2] | |
128 | -# d=list(frame['antenna'][tag_id])[3] | |
129 | -# e=list(frame['antenna'][tag_id])[4] | |
130 | - | |
131 | -# elif (len(list(frame['antenna'][tag_id]))==6): | |
132 | - | |
133 | -# a=list(frame['antenna'][tag_id])[0] | |
134 | -# b=list(frame['antenna'][tag_id])[1] | |
135 | -# c=list(frame['antenna'][tag_id])[2] | |
136 | -# d=list(frame['antenna'][tag_id])[3] | |
137 | -# e=list(frame['antenna'][tag_id])[4] | |
138 | -# f=list(frame['antenna'][tag_id])[5] | |
139 | - | |
140 | -# elif (len(list(frame['antenna'][tag_id]))==7): | |
141 | - | |
142 | -# a=list(frame['antenna'][tag_id])[0] | |
143 | -# b=list(frame['antenna'][tag_id])[1] | |
144 | -# c=list(frame['antenna'][tag_id])[2] | |
145 | -# d=list(frame['antenna'][tag_id])[3] | |
146 | -# e=list(frame['antenna'][tag_id])[4] | |
147 | -# f=list(frame['antenna'][tag_id])[5] | |
148 | -# g=list(frame['antenna'][tag_id])[6] | |
149 | - | |
150 | - | |
151 | - | |
152 | - | |
153 | - #print "len antenna and a,b,c,d are, ", len(list(frame['antenna'][tag_id]))\ | |
154 | - #,a,b,c,d | |
155 | -# print frame['time'], tag_id, frame['count'][tag_id][0],\ | |
156 | -# frame['count'][tag_id][1],\ | |
157 | -# frame['count'][tag_id][2], frame['count'][tag_id][3],\ | |
158 | -# list(frame['boot_count'][tag_id])[0],list(frame['antenna'][tag_id]) | |
159 | 98 | |
160 | 99 | x=frame['antenna'][tag_id] |
161 | 100 |