if __name__=="__main__":
import multiprocessing, collections
pool = multiprocessing.Pool(1, maxtasksperchild=1)
funcs = [brian1_CUBA, brian2_CUBA]
from pylab import *
numfigs = 0
for func in funcs:
N = [10, 100, 1000, 10000]
After Change
figure(figsize=(16, 8))
for func in funcs:
pfunc = functools.partial(func, **options)
all_results = pool.map(pfunc, N)
times = collections.defaultdict(list)
for res in all_results:
for k, v in res.items():