summaryrefslogtreecommitdiffstats
path: root/data/combined/combo.py
diff options
context:
space:
mode:
authorJon Whiteaker <jbw@berkeley.edu>2012-02-22 21:29:28 -0800
committerJon Whiteaker <jbw@berkeley.edu>2012-02-22 21:29:28 -0800
commitcc5c7492c60033b7efa817ef67d6b35792537ed0 (patch)
treeeafb973fd9081ebf8832a1d3e619d5c3a79ebf07 /data/combined/combo.py
parent80fa7033e12b896f314757ccd2067268d08dd2d5 (diff)
downloadkinect-cc5c7492c60033b7efa817ef67d6b35792537ed0.tar.gz
added zdiff, directory reorg
Diffstat (limited to 'data/combined/combo.py')
-rwxr-xr-xdata/combined/combo.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/data/combined/combo.py b/data/combined/combo.py
new file mode 100755
index 0000000..bd21274
--- /dev/null
+++ b/data/combined/combo.py
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+import os
+import sys
+import pickle
+
+runs = []
+names = pickle.load(open(sys.argv[1]))
+labels = ''
+dirs = ['24-1-2012-16-56-57','27-1-2012-10-45-29']
+for arg in sys.argv[2:]:
+ run = open(arg)
+ labels = run.readline().strip('#').strip()
+ runs += [[run, arg.split('/')[-2]]]
+
+print '#dir,'+labels
+for lines, sub_dir in runs:
+ for line in lines:
+ line = line.strip().split(',')
+ line[0] = str(names.index(line[0]) + 1)
+ line.insert(0,str(dirs.index(sub_dir) + 1))
+ print ','.join(line)