Skip to content

Commit

Permalink
Error handling for descriptor values
Browse files Browse the repository at this point in the history
  • Loading branch information
tjkessler committed Jan 15, 2020
1 parent f2b9ce2 commit 853c777
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ecnet/tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def use(self, smiles: list, backend: str = 'padel'):

if backend == 'alvadesc':
mols = [smiles_to_descriptors(s) for s in smiles]
for mol in mols:
for key in list(mol.keys()):
if mol[key] == 'na':
mol[key] = 0
elif backend == 'padel':
mols = [from_smiles(s) for s in smiles]
else:
Expand Down

0 comments on commit 853c777

Please sign in to comment.