• 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

Revisionfd2a10f8a811605534377b659656b1720f554f4e (tree)
Zeit2009-12-03 23:42:27
Autorlorenzo
Commiterlorenzo

Log Message

I updated the way in which I save files (p.save gets replaced by n.savetxt).

Ändern Zusammenfassung

Diff

diff -r 99975a3dc395 -r fd2a10f8a811 Python-codes/assign_new_bootcount.py
--- a/Python-codes/assign_new_bootcount.py Thu Dec 03 10:41:43 2009 +0000
+++ b/Python-codes/assign_new_bootcount.py Thu Dec 03 14:42:27 2009 +0000
@@ -41,7 +41,7 @@
4141
4242 boot_count_cut[:,2]=boot_new_out
4343
44- p.save("boot_new_out.dat", boot_count_cut, fmt="%d")
44+ n.savetxt("boot_new_out.dat", boot_count_cut, fmt="%d")
4545
4646 return
4747
@@ -188,7 +188,7 @@
188188
189189 boot_count_cut=cut_raw_data(raw_data)
190190
191-p.save("new_boot_count_cut.dat", boot_count_cut, fmt="%d")
191+n.savetxt("new_boot_count_cut.dat", boot_count_cut, fmt="%d")
192192
193193
194194
diff -r 99975a3dc395 -r fd2a10f8a811 Python-codes/disambiguate_visitors.py
--- a/Python-codes/disambiguate_visitors.py Thu Dec 03 10:41:43 2009 +0000
+++ b/Python-codes/disambiguate_visitors.py Thu Dec 03 14:42:27 2009 +0000
@@ -41,7 +41,7 @@
4141 #at which contacts are estabilished. It is important to get rid
4242 #of repeated times, otherwise the final array would be
4343 #both redundant and huge
44- p.save("time_unique.dat",time_unique, fmt='%d')
44+ n.savetxt("time_unique.dat",time_unique, fmt='%d')
4545 time_boot=bootcount_data[:,0]
4646
4747 # s.where(s.setmember1d(A,B))
@@ -55,7 +55,7 @@
5555 #is obviously not the case.
5656 my_sel=ismember(time_boot, time_unique)
5757 time_boot_sel=time_boot[my_sel]
58- p.save("time_boot_sel.dat",time_boot_sel, fmt='%d')
58+ n.savetxt("time_boot_sel.dat",time_boot_sel, fmt='%d')
5959
6060 boot_cut=bootcount_data[my_sel,:]
6161 boot_out=boot_cut[:,0:3]
@@ -181,7 +181,7 @@
181181 time_edge_list_and_boot_binary[:,3]=time_edge_list_and_boot[sel_odd,1]
182182 time_edge_list_and_boot_binary[:,4]=time_edge_list_and_boot[sel_odd,2]
183183
184- p.save("edge_list_and_boot_binary.dat",\
184+ n.savetxt("edge_list_and_boot_binary.dat",\
185185 time_edge_list_and_boot_binary, fmt='%d')
186186
187187 #Now I can create a new list where each couple (tag_id,bootcount) is
@@ -197,7 +197,7 @@
197197 time_edge_list_and_boot_hashed[:,2]=\
198198 couple_hash_table2(time_edge_list_and_boot_binary[:,3:5])
199199 print "hashing done again"
200- p.save("edge_list_and_boot_hashed.dat",\
200+ n.savetxt("edge_list_and_boot_hashed.dat",\
201201 time_edge_list_and_boot_hashed, fmt='%d')
202202
203203
@@ -329,7 +329,7 @@
329329 time_edge_list_and_boot_binary[:,3]=time_edge_list_and_boot[sel_odd,1]
330330 time_edge_list_and_boot_binary[:,4]=time_edge_list_and_boot[sel_odd,2]
331331
332- p.save("edge_list_and_boot_binary.dat",\
332+ n.savetxt("edge_list_and_boot_binary.dat",\
333333 time_edge_list_and_boot_binary, fmt='%d')
334334
335335 #Now I can create a new list where each couple (tag_id,bootcount) is
@@ -345,7 +345,7 @@
345345 time_edge_list_and_boot_hashed[:,2]=\
346346 couple_hash_table2(time_edge_list_and_boot_binary[:,3:5])
347347 print "hashing done again"
348- p.save("edge_list_and_boot_hashed.dat",\
348+ n.savetxt("edge_list_and_boot_hashed.dat",\
349349 time_edge_list_and_boot_hashed, fmt='%d')
350350
351351
@@ -390,7 +390,7 @@
390390 # time_edge_list=time_edge_list.astype("uint64")
391391 time_edge_list_reshaped=duplicate_and_mix_array(time_edge_list)
392392 time_edge_list_reshaped=time_edge_list_reshaped.astype("int64")
393-p.save("edge_list_reshaped.dat",time_edge_list_reshaped, fmt='%d')
393+n.savetxt("edge_list_reshaped.dat",time_edge_list_reshaped, fmt='%d')
394394
395395 # resized_tag_boot_list=p.load("boot_count_cut.dat")
396396 # resized_tag_boot_list=resized_tag_boot_list.astype("int")