Skip to content

Commit

Permalink
[mp-pipeline] bugfix import error and add random timer for deepTMHMM …
Browse files Browse the repository at this point in the history
…call
  • Loading branch information
j0kaso committed Jul 27, 2022
1 parent 0a7756b commit 0dafffc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion software/rosetta_ddG_pipeline/mp_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import io
import logging as logger
import os
import random
import subprocess
import sys
import time
import glob
import json

Expand Down Expand Up @@ -300,7 +302,8 @@ def calc_deepTMHMM(fasta_file, tmp_output_path):
run_count = 9
else:
run_count += 1
time.sleep(2*60) # wait 2 minutes before trying to reach the server again
sleeptime = random.randint(1*60, 5*60)
time.sleep(sleeptime) # wait 2 minutes before trying to reach the server again

# get total length
total_length = len(inputseq)
Expand Down

0 comments on commit 0dafffc

Please sign in to comment.