baybe.utils.chemistry.is_valid_smiles

baybe.utils.chemistry.is_valid_smiles(smiles: str)[source]

Test if a SMILES string is valid according to RDKit.

Parameters:

smiles (str) – SMILES string to be tested.

Return type:

bool

Returns:

True if the provided SMILES is valid, False else.