mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
* disable builds of the StructChecker code by default * operator"" _smarts() doesn't need to catch sanitization errors * remove unused function * turn back on some tests that shouldn't have been disabled * Remove unused code from SMARTS parser and simplify a bit SmilesParseOps::AddFragToMol is now used only from the SMARTS parser, so we can simplify the API * Removes obsolete special case code for SMARTS This was relevant when organic atoms in SMARTS queries were stored as two-part queries. * improve SMARTS testing make sure we can generate SMARTS from all the examples and then parse that again. * Fixes #2814 * Fixes #2815 * some additional smarts tests to improve coverage * test copy ctor and getPos * remove obsolete test_list files * include tests for the morgan invariant generators * more cleanups and coverage improvements * remove files that were mistakenly added
36 lines
876 B
C++
36 lines
876 B
C++
//
|
|
// Copyright (C) 2003-2019 Greg Landrum and Rational Discovery LLC
|
|
//
|
|
// @@ 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.
|
|
//
|
|
|
|
#include "rdmolops.h"
|
|
#include <RDBoost/python.h>
|
|
|
|
#include <RDGeneral/types.h>
|
|
|
|
#include <RDBoost/Wrap.h>
|
|
#include <RDBoost/import_array.h>
|
|
#include <RDGeneral/Exceptions.h>
|
|
#include <GraphMol/SanitException.h>
|
|
|
|
namespace python = boost::python;
|
|
using namespace RDKit;
|
|
|
|
void wrap_molops();
|
|
|
|
BOOST_PYTHON_MODULE(rdmolops) {
|
|
python::scope().attr("__doc__") =
|
|
"Module containing RDKit functionality for manipulating molecules.";
|
|
rdkit_import_array();
|
|
|
|
// ******************************
|
|
// Functions from MolOps
|
|
//****************************
|
|
wrap_molops();
|
|
}
|