Skip to content

Commit

Permalink
Issue #177. First tests with nogil python. WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinecarme committed May 16, 2022
1 parent 81c7f7b commit e7148b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyaf/TS/SignalDecomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ def finalize_training(self):
"Transformations" : [(lSignal, sorted(list(lSigDecs.keys()))) for (lSignal , lSigDecs) in self.mSigDecBySplitAndTransform.items()],
"Cores" : NCores}))
if(self.mOptions.mParallelMode and NCores > 1):
from multiprocessing.pool import ThreadPool as Pool
pool = Pool(NCores)
pool = create_multiprocessing_pool(NCores)

for res in pool.imap(run_finalize_training, args):
(lSignal, lPerfsByModel, lBestModel, lPerfDetails, lModelShortList) = res
Expand Down

0 comments on commit e7148b7

Please sign in to comment.