Skip to content

Commit 23fa8d7

Browse files
author
Bo Li
committed
import psutil
1 parent 62df6a2 commit 23fa8d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

harmony/harmony.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def harmonize(
104104
assert(isinstance(X, np.ndarray))
105105

106106
if n_jobs < 0:
107+
import psutil
107108
n_jobs = psutil.cpu_count(logical=False) # get physical cores
108109
if n_jobs is None:
109110
n_jobs = psutil.cpu_count(logical=True) # if undetermined, use logical cores instead

0 commit comments

Comments
 (0)