Switched to ThreadPool
This commit is contained in:
parent
5a9e5eb5b4
commit
cb05a03a28
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
import argparse
|
||||
import configparser
|
||||
import logging
|
||||
from multiprocessing.pool import Pool
|
||||
from multiprocessing.pool import ThreadPool
|
||||
import pathlib
|
||||
|
||||
import numpy as np
|
||||
|
@ -39,7 +39,7 @@ var = {
|
|||
}
|
||||
|
||||
inp.mkdir(exist_ok=True)
|
||||
with Pool() as pool:
|
||||
with ThreadPool() as pool:
|
||||
log.info("Converting all data")
|
||||
pool.map(
|
||||
lambda x: np.save(
|
||||
|
|
Loading…
Reference in a new issue