from subprocess import call
import os
from time import time
import sys
from collections import defaultdict

input_path = sys.argv[1]
output_file = sys.argv[2]

def run_analyzer(input_path, output_file):
  to_analyze = []
  for f in os.listdir(input_path):
    if f.endswith("mod"):
      to_analyze.append(f)

  to_analyze.sort()

  for f in to_analyze:
    call(['./bin/analyze_weights', input_path + f, output_file])


start = time()

run_analyzer(input_path, output_file)

end = time()

print "Everything done in " + str(end - start) + " seconds!"
3d31bd08597471ea5f53e2f8b0b3077196fd1f80
from subprocess import call
import os
from time import time
import sys
from collections import defaultdict

input_path = sys.argv[1]
output_file = sys.argv[2]

def run_analyzer(input_path, output_file):
  to_analyze = []
  for f in os.listdir(input_path):
    if f.endswith("mod"):
      to_analyze.append(f)

  to_analyze.sort()

  for f in to_analyze:
    call(['./bin/analyze_weights', input_path + f, output_file])


start = time()

run_analyzer(input_path, output_file)

end = time()

print "Everything done in " + str(end - start) + " seconds!"