Skip to content

Commit 897e33c

Browse files
committed
switch to one CPU and check for binary
1 parent 70807e8 commit 897e33c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

qsprpred/extra/data/descriptors/sets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def __init__(self, descs: list[str] | None = None):
132132
super().__init__()
133133
self._descs = descs
134134
self._mold2 = Mold2_calculator()
135+
assert os.path.exists(self._mold2._zipfile), "Mold2 binary not found"
135136
self._defaultDescs = self._mold2.calculate(
136137
[Chem.MolFromSmiles("C")], show_banner=False
137138
).columns.tolist()

qsprpred/extra/data/descriptors/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def setUp(self):
5858
@skipIf(platform.system() == "Darwin", "Mold2 not supported on Mac OS")
5959
def testMold2(self):
6060
"""Test the Mold2 descriptor calculator."""
61+
self.dataset.nJobs = 1
6162
self.dataset.addDescriptors([Mold2()])
6263
self.assertEqual(self.dataset.X.shape, (len(self.dataset), 777))
6364
self.assertTrue(self.dataset.X.any().any())

0 commit comments

Comments
 (0)