Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ImportLCmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def Import_and_Process_LC(folder, nProc=1, outfile = "LC-MS.msh5",
# and close
HF.flush()
if nProc>1:
Pool.close() # finally closes multiprocessing slaves
Pool.close() # finally closes multiprocessing subordinates
return data

class Proc_Parameters(object):
Expand Down
10 changes: 5 additions & 5 deletions processing_4EU.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def main(argv = None):
if v != 0.0:
opt_param[p] = v
if param.mp:
Pool = mp.Pool(param.nproc) # if multiprocessing, creates slaves early, while memory is empty !
Pool = mp.Pool(param.nproc) # if multiprocessing, creates subordinates early, while memory is empty !
param.report()
logflux.log.flush() # flush logfile
######## determine files and load inputfile
Expand Down Expand Up @@ -1026,7 +1026,7 @@ def main(argv = None):
hfar.close()

if param.mp:
Pool.close() # finally closes multiprocessing slaves
Pool.close() # finally closes multiprocessing subordinates
logflux.log.flush() # flush logfile

# default values
Expand All @@ -1035,8 +1035,8 @@ def main(argv = None):
if mpiutil.MPI_size < 2: # this is single processor
main()
else: # this is a MPI run
if mpiutil.MPI_rank == 0: # master proc
if mpiutil.MPI_rank == 0: # main proc
main()
mpiutil.shutdown()
else: # slave proc
mpiutil.slave()
else: # subordinate proc
mpiutil.subordinate()