summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-01-22 15:30:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-01-22 15:30:59 +0100
commitc6c4ca2b01ab9067d0e5fbb09cc30cb3065dd39e (patch)
tree4e757266b1bd5c86959bbbbc9464d518d8ce0251 /bin
parent3c8b2b7663282db13096c32cfe509e367293b56a (diff)
Implement preprocessing without perl script hackery
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
new file mode 100755
index 0000000..c3a1547
--- /dev/null
+++ b/bin/analyze-archive.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+
+import json
+import numpy as np
+import os
+from scipy.cluster.vq import kmeans2
+import struct
+import sys
+import tarfile
+from dfatool import AEMRAnalyzer
+
+if __name__ == '__main__':
+ filename = sys.argv[1]
+ analyzer = AEMRAnalyzer(filename)
+
+ analyzer.preprocess()
+ sys.exit(0)