Skip to content
Merged
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
9 changes: 6 additions & 3 deletions dpdata/rdkit/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from rdkit import Chem
from rdkit.Chem import AllChem
try:
from rdkit import Chem
from rdkit.Chem import AllChem
except ModuleNotFoundError:
pass
import numpy as np

def mol_to_system_data(mol):
Expand Down Expand Up @@ -105,4 +108,4 @@ def combine_molecules(mols):
mols[0].AddConformer(conf, assignId=True)
return mols[0]
else:
raise ValueError("molecules are not of the same topology.")
raise ValueError("molecules are not of the same topology.")