Commit c7d269bf authored by Thomas Vincent's avatar Thomas Vincent

Use default n_proc when computing intensity

parent f905fd4d
......@@ -31,10 +31,11 @@ __date__ = "15/09/2016"
from collections import OrderedDict
from multiprocessing import Pool, cpu_count, Manager, queues
from multiprocessing import Pool, Manager, queues
from silx.gui import qt as Qt, icons
from ... import config
from ..model.Node import Node
from ..model.ModelDef import ModelColumns
......@@ -160,7 +161,7 @@ def getIntensity(projectFile, pathTpl, view=None):
projectLock = manager.Lock()
queue = manager.Queue()
n_proc = cpu_count()
n_proc = config.DEFAULT_PROCESS_NUMBER
pool = Pool(n_proc,
maxtasksperchild=2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment