Exemplo n.º 1
0
 def run(self):
     while True:
         dir, prot = self.queue.get()
         try:
             download_link(dir, prot)
         finally:
             self.queue.task_done()
def run_sequentially(dir):
    for p in get_proteins():
        download_link(dir, p)
Exemplo n.º 3
0
def run_single_thread(dir):
    proteins = get_proteins()
    print(len(proteins))
    print(proteins)
    for p in proteins:
        download_link(dir, p)
def run_single(dir):
    proteins = get_proteins()
    for pr in proteins:
        download_link(dir, pr)