SNABSuite  0.x
Spiking Neural Architecture Benchmark Suite
benchmark.py
Go to the documentation of this file.
1 # Python script that just calls the executable, compatibility hack
2 # for benchmark service
3 import sys
4 arguments = sys.argv[1:]
5 
6 simulators = ["nest", "spinnaker", "nmpm1", "spikey"] # SNABSuite simulators
7 web_simulators = ["NEST", "SpiNNaker", "BrainScaleS",
8  "Spikey"] # Web frontend simulators
9 web_simulators_low = ["nest", "spinnaker", "brainscales",
10  "spikey"] # Web frontend simulators
11 
12 index = web_simulators_low.index(arguments[0].lower())
13 arguments[0] = simulators[index]
14 
15 args_list = ["./benchmark"]
16 args_list.extend(arguments)
17 
18 import subprocess
19 subprocess.check_call(args_list)
20 
21 import os
22 for root, dirs, files in os.walk(os.path.abspath("./")):
23  for file in files:
24  if not file.endswith('.json'):
25  os.remove(os.path.join(root, file))