• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisione788865417c80884c49f3e4f6dd112ef431dcf89 (tree)
Zeit2009-09-22 18:13:25
Autorlorenzo
Commiterlorenzo

Log Message

I simply removed some unnecessary comments from the code and set the time
slice duration to 20 sec.

Ändern Zusammenfassung

Diff

diff -r a4c76e5f1074 -r e788865417c8 Python-codes/infectious_power_3.py
--- a/Python-codes/infectious_power_3.py Mon Sep 21 17:07:29 2009 +0000
+++ b/Python-codes/infectious_power_3.py Tue Sep 22 09:13:25 2009 +0000
@@ -86,7 +86,7 @@
8686
8787 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)
8888
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)
9090
9191
9292
@@ -95,67 +95,6 @@
9595 if len(frame['boot_count'][tag_id]) < 1:
9696 continue
9797
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])
15998
16099 x=frame['antenna'][tag_id]
161100