Révision 8e31f746 modules/clustering.py
b/modules/clustering.py | ||
---|---|---|
19 | 19 |
import numpy as np |
20 | 20 |
|
21 | 21 |
logger = logging.getLogger('DockOnSurf') |
22 |
warnings.filterwarnings("error") |
|
23 | 22 |
|
24 | 23 |
|
25 | 24 |
def get_rmsd(mol_list: list, remove_Hs="c"): |
... | ... | |
126 | 125 |
exemplars = [] |
127 | 126 |
for i, mtx in enumerate(clust_affty_mtcs): |
128 | 127 |
pref = -1e6 * np.max(np.abs(mtx)) |
128 |
warnings.filterwarnings("error") |
|
129 | 129 |
try: |
130 | 130 |
af = AffinityPropagation(affinity='precomputed', preference=pref, |
131 | 131 |
damping=0.95, max_iter=2000, |
Formats disponibles : Unified diff