1313from jazzy .core import get_covalent_atom_idxs
1414from jazzy .core import kallisto_molecule_from_rdkit_molecule
1515from jazzy .core import rdkit_molecule_from_smiles
16+ from jazzy .exception import exception_handling
17+ from jazzy .exception import JazzyError
1618from jazzy .helpers import condense_atomic_map
1719from jazzy .helpers import convert_map_to_tuples
1820from jazzy .helpers import sum_atomic_map
19- from jazzy .utils import JazzyError
2021from jazzy .visualisation import depict_strengths
2122
2223
@@ -37,6 +38,7 @@ def __smiles_to_molecule_objects(smiles, minimisation_method=MINIMISATION_METHOD
3738 return rdkit_mol , kallisto_mol
3839
3940
41+ @exception_handling
4042def molecular_vector_from_smiles (
4143 smiles : str , minimisation_method = MINIMISATION_METHOD , only_strengths = False
4244):
@@ -92,6 +94,7 @@ def molecular_vector_from_smiles(
9294 return mol_vector
9395
9496
97+ @exception_handling
9598def deltag_from_smiles (smiles : str , minimisation_method = MINIMISATION_METHOD ):
9699 """API route to calculate molecular free energy scalar.
97100
@@ -134,6 +137,7 @@ def deltag_from_smiles(smiles: str, minimisation_method=MINIMISATION_METHOD):
134137 return round (sum (dg .values ()), ROUNDING_DIGITS )
135138
136139
140+ @exception_handling
137141def atomic_tuples_from_smiles (smiles : str , minimisation_method = MINIMISATION_METHOD ):
138142 """API route to generate a tuple representation on the atomic map.
139143
@@ -160,6 +164,7 @@ def atomic_tuples_from_smiles(smiles: str, minimisation_method=MINIMISATION_METH
160164 return convert_map_to_tuples (atomic_map )
161165
162166
167+ @exception_handling
163168def atomic_map_from_smiles (smiles : str , minimisation_method = MINIMISATION_METHOD ):
164169 """API route to generate a condensed representation on the atomic map.
165170
@@ -186,6 +191,7 @@ def atomic_map_from_smiles(smiles: str, minimisation_method=MINIMISATION_METHOD)
186191 return condense_atomic_map (atomic_map )
187192
188193
194+ @exception_handling
189195def atomic_strength_vis_from_smiles (
190196 smiles : str ,
191197 minimisation_method = MINIMISATION_METHOD ,
0 commit comments