From c6c4ca2b01ab9067d0e5fbb09cc30cb3065dd39e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 22 Jan 2018 15:30:59 +0100 Subject: Implement preprocessing without perl script hackery --- bin/analyze-archive.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/analyze-archive.py (limited to 'bin/analyze-archive.py') 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) -- cgit v1.2.3