We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8306fc + 0893a80 commit f58a2faCopy full SHA for f58a2fa
1 file changed
music21/common/parallel.py
@@ -116,6 +116,7 @@ def runParallel(iterable,
116
unpackIterable=unpackIterable,
117
updateSendsIterable=updateSendsIterable)
118
119
+ numCpus = cpus()
120
iterLength = len(iterable)
121
totalRun = 0
122
if updateFunction is None:
@@ -147,7 +148,6 @@ def callUpdate(ii):
147
148
callUpdate(0)
149
from joblib import Parallel, delayed # type: ignore
150
- numCpus = cpus()
151
with Parallel(n_jobs=numCpus) as para:
152
delayFunction = delayed(parallelFunction)
153
while totalRun < iterLength:
0 commit comments