Remove psutil
This commit is contained in:
parent
38616b1c4f
commit
394d4465b0
2 changed files with 1 additions and 3 deletions
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
|
@ -31,7 +31,6 @@
|
||||||
"Parcoords",
|
"Parcoords",
|
||||||
"plotly",
|
"plotly",
|
||||||
"proba",
|
"proba",
|
||||||
"psutil",
|
|
||||||
"pydantic",
|
"pydantic",
|
||||||
"pymongo",
|
"pymongo",
|
||||||
"pyplot",
|
"pyplot",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ from math import ceil
|
||||||
from typing import Any, Callable, Iterable, List, Optional
|
from typing import Any, Callable, Iterable, List, Optional
|
||||||
|
|
||||||
import multiprocess as mp
|
import multiprocess as mp
|
||||||
import psutil
|
|
||||||
from tqdm.cli import tqdm
|
from tqdm.cli import tqdm
|
||||||
|
|
||||||
from .logger import get_logger
|
from .logger import get_logger
|
||||||
|
|
@ -18,7 +17,7 @@ def parallel_map(
|
||||||
disable_progress: bool = False,
|
disable_progress: bool = False,
|
||||||
) -> List[Any]:
|
) -> List[Any]:
|
||||||
if concurrency is None:
|
if concurrency is None:
|
||||||
concurrency = psutil.cpu_count()
|
concurrency = mp.cpu_count()
|
||||||
|
|
||||||
assert concurrency > 0
|
assert concurrency > 0
|
||||||
assert chunk_size is None or chunk_size > 0
|
assert chunk_size is None or chunk_size > 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue