mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Fix Flake8 erorrs (#4252)
* Fix PEP8 [E101](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E502](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E703](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E712](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E713](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E722](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [W605](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)
This commit is contained in:
@@ -240,12 +240,12 @@ class TestCase(unittest.TestCase):
|
||||
fps.append(fp)
|
||||
mmp = rdSimDivPickers.MaxMinPicker()
|
||||
ids = list(mmp.LazyBitVectorPick(fps, len(fps), 20, seed=42))
|
||||
self.assertEqual(ids,[374,720,690,339,875,842,404,725,120,385,115,868,630,\
|
||||
self.assertEqual(ids,[374,720,690,339,875,842,404,725,120,385,115,868,630,
|
||||
881,516,497,412,718,869,407])
|
||||
|
||||
ids = list(
|
||||
mmp.LazyBitVectorPick(fps, len(fps), 20, firstPicks=[374, 720, 690, 339, 875], seed=42))
|
||||
self.assertEqual(ids,[374,720,690,339,875,842,404,725,120,385,115,868,630,\
|
||||
self.assertEqual(ids,[374,720,690,339,875,842,404,725,120,385,115,868,630,
|
||||
881,516,497,412,718,869,407])
|
||||
|
||||
def testBitVectorMaxMin4(self):
|
||||
@@ -259,7 +259,7 @@ class TestCase(unittest.TestCase):
|
||||
fps.append(fp)
|
||||
mmp = rdSimDivPickers.MaxMinPicker()
|
||||
ids, threshold = mmp.LazyBitVectorPickWithThreshold(fps, len(fps), 20, -1.0, seed=42)
|
||||
self.assertEqual(list(ids),[374,720,690,339,875,842,404,725,120,385,115,868,630,\
|
||||
self.assertEqual(list(ids),[374,720,690,339,875,842,404,725,120,385,115,868,630,
|
||||
881,516,497,412,718,869,407])
|
||||
|
||||
self.assertAlmostEqual(threshold, 0.8977, 4)
|
||||
|
||||
Reference in New Issue
Block a user