Update drug_generator.py
Browse files- drug_generator.py +0 -1
drug_generator.py
CHANGED
|
@@ -92,7 +92,6 @@ def get_sdf(ligand_list,output_path):
|
|
| 92 |
cmd = "obabel -:" + ligand + " -osdf -O " + filename + " --gen3d --forcefield mmff94"# --conformer --nconf 1 --score rmsd
|
| 93 |
#subprocess.check_call(cmd, shell=True)
|
| 94 |
try:
|
| 95 |
-
# 设置超时时间为 30 秒
|
| 96 |
output = subprocess.check_output(cmd, timeout=10)
|
| 97 |
except subprocess.TimeoutExpired:
|
| 98 |
pass
|
|
|
|
| 92 |
cmd = "obabel -:" + ligand + " -osdf -O " + filename + " --gen3d --forcefield mmff94"# --conformer --nconf 1 --score rmsd
|
| 93 |
#subprocess.check_call(cmd, shell=True)
|
| 94 |
try:
|
|
|
|
| 95 |
output = subprocess.check_output(cmd, timeout=10)
|
| 96 |
except subprocess.TimeoutExpired:
|
| 97 |
pass
|