mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
fix the simdivfilters problem with python3. This has now been tested on py3 and should, hopefully, not cause the travis build to fail
This commit is contained in:
@@ -27,7 +27,7 @@ class TestCase(unittest.TestCase):
|
||||
return 0.0
|
||||
if i<j:
|
||||
j,i=i,j
|
||||
return self.dMat[i*(i-1)/2+j]
|
||||
return self.dMat[i*(i-1)//2+j]
|
||||
lmaxmin = pkr.LazyPick(func, self.n, self.m,(886,112))
|
||||
self.assertEqual(list(lmaxmin),list(maxmin))
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#
|
||||
from rdkit import rdBase
|
||||
try:
|
||||
import rdSimDivPickers
|
||||
from rdkit.SimDivFilters import rdSimDivPickers
|
||||
from rdkit.SimDivFilters.rdSimDivPickers import *
|
||||
except ImportError:
|
||||
import traceback
|
||||
rdSimDivPickers=None
|
||||
|
||||
Reference in New Issue
Block a user