Skip to content

Commit

Permalink
Fix multithreading: python multiprocessing.pool has something called …
Browse files Browse the repository at this point in the history
…ThreadPool so importing Pool as ThreadPool was causing a hang. Still waits until the entire file is finished before printing results, but does produce results after <10 seconds
  • Loading branch information
rmcolq committed Feb 2, 2020
1 parent 882107b commit 5b8f447
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readucks/readucks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import sys
from collections import defaultdict
from datetime import datetime
from multiprocessing import Pool as ThreadPool
from multiprocessing.pool import ThreadPool
from functools import partial

from Bio import SeqIO
Expand Down Expand Up @@ -395,3 +395,7 @@ def get_arguments():
return args


if __name__ == '__main__':
main()


0 comments on commit 5b8f447

Please sign in to comment.