Skip to content

Commit 6a28ab2

Browse files
committed
fix(rdkit): replace Descriptors.LabuteASA with rdMolDescriptors.CalcLabuteASA
1 parent 575f1e5 commit 6a28ab2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scientific-skills/rdkit/scripts/molecular_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
try:
1818
from rdkit import Chem
19-
from rdkit.Chem import Descriptors, Lipinski
19+
from rdkit.Chem import Descriptors, Lipinski, rdMolDescriptors
2020
except ImportError:
2121
print("Error: RDKit not installed. Install with: conda install -c conda-forge rdkit")
2222
sys.exit(1)
@@ -42,7 +42,7 @@ def calculate_properties(mol):
4242

4343
# Polar surface area
4444
'TPSA': Descriptors.TPSA(mol),
45-
'LabuteASA': Descriptors.LabuteASA(mol),
45+
'LabuteASA': rdMolDescriptors.CalcLabuteASA(mol),
4646

4747
# Hydrogen bonding
4848
'HBD': Descriptors.NumHDonors(mol),

0 commit comments

Comments
 (0)