Commit ce2cbd84 authored by Guang's avatar Guang
Browse files

Force 'ncores' to int type

parent cd91b29e
......@@ -64,7 +64,7 @@ class SaveFluxes(AnalysisModule):
for idx, item in enumerate(items):
worker(idx, item)
else: # run in parallel
with mp.Pool(processes=ncores, initializer=initializer,
with mp.Pool(processes=int(ncores), initializer=initializer,
initargs=initargs) as pool:
pool.starmap(worker, enumerate(items))
......
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