Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion graphchem/preprocessing/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import numpy as np
import rdkit
from rdkit import Chem
import torch


Expand Down Expand Up @@ -221,7 +222,7 @@ def __init__(self, smiles: List[str]):
ValueError
If any provided SMILES string cannot be parsed by RDKit.
"""
mols = [rdkit.Chem.MolFromSmiles(smi) for smi in smiles]
mols = [Chem.MolFromSmiles(smi) for smi in smiles]
for idx, mol in enumerate(mols):
if mol is None:
raise ValueError(f"Unable to parse SMILES: {smiles[idx]}")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include-package-data = true

[project]
name = "graphchem"
version = "2.3.2"
version = "2.3.3"
authors = [
{ name="Travis Kessler", email="travis.j.kessler@gmail.com" },
]
Expand Down