You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The identifier "trans-2-EICOSENE" doesn't figure in PubChem. The IndexError is from pubchempy I have to give a better error message. Using 2-Eicosene works.
Now on the dev branch, the error message is improved.
from ugropy import joback
joback.get_groups("trans-2-EICOSENE")
File ~/code/ugropy/ugropy/core/get_rdkit_object.py:42, in instantiate_mol_object(identifier, identifier_type)
40 chem_object = Chem.MolFromSmiles(smiles)
41 except IndexError:
---> 42 raise ValueError(
43 f"Could not find a molecule with the name '{identifier}' on "
44 "PubChem"
45 )
47 elif identifier_type.lower() == "mol":
48 chem_object = identifier
ValueError: Could not find a molecule with the name 'trans-2-EICOSENE' on PubChem
The text was updated successfully, but these errors were encountered: