Commit Graph

4 Commits

Author SHA1 Message Date
David Cosgrove
3d1771f040 Extra rascal option (#7073)
* Expose maxBondMatchPairs to Python.

* Better test.

* Suggestions from clang-tidy.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2024-01-23 06:05:58 +01:00
Paolo Tosco
2b4202867e Add Python modules to generate stubs and automatically patch docstrings (#6919)
* - added gen_rdkit_stubs Python module to generate rdkit-stubs
- added patch_rdkit_docstrings Python module to patch existing C++ sources to fix docstrings missing self parameter and add named parameters taken from C++ signatures where possible
- added rdkit-stubs/CMakeLists.txt to build rdkit-stubs as part of the RDKit build
- added an option to CMakeLists.txt to enable building rdkit-stubs as part of the RDKit build (defaults to OFF)

* fixed CMakeLists.txt, rdkit-stubs/CMakeLists.txt and a doctest

* - added missing cmp_func parameter
- fixed case with overloads with optional parameters
- do not trim params if expected_param_count == -1
- add dummy parameter names if we could not find any
- keep into account member functions when making up parameter names
- address __init__ and make_constructor __init__ functions
- fix incorrectly assigned staticmethods

* patched sources

* address residual few remarks

---------

Co-authored-by: ptosco <paolo.tosco@novartis.com>
2023-11-30 04:54:18 +01:00
David Cosgrove
904da61476 Expose RascalMCES singleLargestFrag option to Python. (#6674)
* Expose singleLargestFrag option to Python.

* Better documentation.
A couple more things exposed.

* Expose RascalClusterOptions.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2023-08-31 06:54:24 +02:00
David Cosgrove
2dd9c5f3cd RASCAL MCES (#6568) 2023-08-27 13:51:49 +02:00