Skip to content

Commit 23a732b

Browse files
committed
added parallel result collection (fixed)
1 parent d588bc4 commit 23a732b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basicrta/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def collect_results(self, nproc=1):
9696
with (Pool(nproc, initializer=tqdm.set_lock,
9797
initargs=(Lock(),)) as p):
9898
try:
99-
for _ in tqdm(p.istarmap(self._single_result, dirs),
99+
for _ in tqdm(p.imap(self._single_result, dirs),
100100
total=len(dirs), position=0,
101101
desc='overall progress'):
102102
pass

0 commit comments

Comments
 (0)