Files
rdkit/Code/SimDivPickers/Wrap/rdSimDivPickers.cpp
Greg Landrum 6cfc8f36a7 [WIP] Add Leader picker implementation (#2724)
* initial commit of Roger's contrib

* add the new file to the headers list

* clang-format

* stub of the python wrapper

* code added for testing

* code added for testing

* add LeaderPicker.seq.h

* default pickSize value

* first crude python wrapper

* Add C++ tests for the LeaderPicker
combine the thread and non-thread versions

* that was not really a test

* support providing a functor from Python

* no longer need the .seq header

* temporarily disable the threaded version to allow CI runs to pass

* some refactoring and cleanup
2019-10-24 13:14:15 +02:00

31 lines
768 B
C++

//
// Copyright (C) 2003-2006 Rational Discovery LLC
// Copyright (C) 2019 Greg Landrum
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#define PY_ARRAY_UNIQUE_SYMBOL rdpicker_array_API
#include <RDBoost/Wrap.h>
#include <RDBoost/import_array.h>
namespace python = boost::python;
void wrap_maxminpick();
void wrap_leaderpick();
void wrap_HierarchCP();
BOOST_PYTHON_MODULE(rdSimDivPickers) {
python::scope().attr("__doc__") =
"Module containing the diversity and similarity pickers";
rdkit_import_array();
wrap_maxminpick();
wrap_leaderpick();
wrap_HierarchCP();
}