ensure_mols#

skfp.utils.ensure_mols(X: Sequence[Any]) list[Mol]#

Ensure that all input sequence elements are RDKit Mol objects. Requires all input elements to be of the same type: string (SMILES strings) or Mol. In case of SMILES strings, they are converted to RDKit Mol objects with default settings.