diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-01-22 15:30:59 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-01-22 15:30:59 +0100 |
commit | c6c4ca2b01ab9067d0e5fbb09cc30cb3065dd39e (patch) | |
tree | 4e757266b1bd5c86959bbbbc9464d518d8ce0251 /bin/analyze-archive.py | |
parent | 3c8b2b7663282db13096c32cfe509e367293b56a (diff) |
Implement preprocessing without perl script hackery
Diffstat (limited to 'bin/analyze-archive.py')
-rwxr-xr-x | bin/analyze-archive.py | 17 |
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) |