Mercurial > hg > absrec
changeset 2:a98abf25c5c9
ABSapprox.py: Fixed: number of processors in Pool() is default, not fixed to 4
ABSapprox.py: Fixed: imported matplotlib.colors
author | nikcleju |
---|---|
date | Thu, 15 Dec 2011 12:52:01 +0000 |
parents | 4f74c1d0f957 |
children | 3e97022ad8da |
files | ABSapprox.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ABSapprox.py Thu Dec 15 12:41:17 2011 +0000 +++ b/ABSapprox.py Thu Dec 15 12:52:01 2011 +0000 @@ -71,6 +71,7 @@ matplotlib.use('Cairo') import matplotlib.pyplot as plt import matplotlib.cm as cm + import matplotlib.colors as mcolors print "OK" except: print "FAIL" @@ -132,7 +133,7 @@ jobresults = [] if doparallel: - pool = multiprocessing.Pool(4,initializer=initProcess,initargs=(currmodule.proccount,currmodule.njobs)) + pool = multiprocessing.Pool(None,initializer=initProcess,initargs=(currmodule.proccount,currmodule.njobs)) jobresults = pool.map(run_once_tuple, jobparams) else: for jobparam in jobparams: