Révision 54be2a9e
b/modules/isolated.py | ||
---|---|---|
16 | 16 |
import numpy as np |
17 | 17 |
from rdkit.Chem import AllChem as Chem |
18 | 18 |
|
19 |
from formats import adapt_format |
|
20 |
|
|
21 | 19 |
logger = logging.getLogger('DockOnSurf') |
22 | 20 |
|
23 | 21 |
|
... | ... | |
105 | 103 |
elif remove_Hs.lower() == "c": |
106 | 104 |
mol = remove_C_linked_Hs(mol) |
107 | 105 |
else: |
108 |
pass |
|
106 |
err = "remove_Hs value does not have an acceptable value" |
|
107 |
logger.error(err) |
|
108 |
raise ValueError(err) |
|
109 | 109 |
|
110 | 110 |
num_confs = mol.GetNumConformers() |
111 | 111 |
conf_ids = list(range(num_confs)) |
... | ... | |
183 | 183 |
@param inp_vars: |
184 | 184 |
@return: |
185 | 185 |
""" |
186 |
from formats import adapt_format |
|
187 |
|
|
186 | 188 |
# from clustering import * |
187 | 189 |
logger.info('Carrying out procedures for the isolated molecule') |
188 | 190 |
rd_mol = adapt_format('rdkit', inp_vars['molec_file']) |
Formats disponibles : Unified diff