Remove psutil

This commit is contained in:
Andras Schmelczer 2022-06-25 19:04:13 +02:00
parent 38616b1c4f
commit 394d4465b0
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
2 changed files with 1 additions and 3 deletions

View file

@ -31,7 +31,6 @@
"Parcoords",
"plotly",
"proba",
"psutil",
"pydantic",
"pymongo",
"pyplot",

View file

@ -2,7 +2,6 @@ from math import ceil
from typing import Any, Callable, Iterable, List, Optional
import multiprocess as mp
import psutil
from tqdm.cli import tqdm
from .logger import get_logger
@ -18,7 +17,7 @@ def parallel_map(
disable_progress: bool = False,
) -> List[Any]:
if concurrency is None:
concurrency = psutil.cpu_count()
concurrency = mp.cpu_count()
assert concurrency > 0
assert chunk_size is None or chunk_size > 0