Skip to content

Commit

Permalink
Bugfix: using RDMC implemented xyz2mol
Browse files Browse the repository at this point in the history
This commit fixes the behavior when RDKit's implementation of xyz2mol is available, forcing to use RDMC's implementation will raise an error.
  • Loading branch information
xiaoruiDong committed Sep 7, 2023
1 parent 3057c9a commit 0413c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdmc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from rdkit.Chem import rdDetermineBonds
except ImportError:
rdDetermineBonds = None
from rdmc.external.xyz2mol import parse_xyz_by_jensen as parse_xyz_by_jensen_rdmc
# TODO: Could raise an warning says RDKit built-in xyz2mol not supported due to lower version
# uses a rdmc-implemented version of xyz2mol
from rdmc.external.xyz2mol import parse_xyz_by_jensen as parse_xyz_by_jensen_rdmc
from rdkit.Chem.TorsionFingerprints import CalculateTorsionLists

# Mute RDKit's error logs
Expand Down

0 comments on commit 0413c21

Please sign in to comment.