From d3d234caa7e27a353072b46759f1ef7798b48cc3 Mon Sep 17 00:00:00 2001 From: ale94mleon Date: Tue, 19 Jul 2022 21:18:40 +0200 Subject: [PATCH] fix another typo --- moldrug/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moldrug/utils.py b/moldrug/utils.py index 613ba6a..bcc2fa9 100644 --- a/moldrug/utils.py +++ b/moldrug/utils.py @@ -748,7 +748,7 @@ class Local: def __init__(self, mol:Chem.rdchem.Mol, crem_db_path:str, costfunc:object, grow_crem_kwargs:dict = {}, costfunc_kwargs:dict = {}) -> None: self.mol = mol self.InitIndividual = Individual(Chem.MolToSmiles(self.mol), self.mol, idx = 0) - if self.InitIndividual.pdbqt: + if not self.InitIndividual.pdbqt: raise Exception(f"For some reason, it was not possible to create the class Individula was not able to create a pdbqt from the seed_smiles. Consider to check the validity of the SMILES string!") self.crem_db_path = crem_db_path self.grow_crem_kwargs = grow_crem_kwargs