20#include <pybind11/complex.h>
21#include <pybind11/iostream.h>
22#include <pybind11/pybind11.h>
23#include <pybind11/stl.h>
25namespace py = pybind11;
29 "VOTCA-XTP is a library which allows you to calculate the electronic "
30 "properties of organic materials,"
35 [](const std::string& name,
36 const std::map<std::string, std::string>& dict) {
37 py::scoped_ostream_redirect redirect_cout(
38 std::cout, py::module_::import("sys").attr("stdout"));
39 py::scoped_ostream_redirect redirect_cerr(
40 std::cerr, py::module_::import(
"sys").attr(
"stderr"));
44 Invoke a Votca XTP calculator
56 [](const std::string& name, Index nthreads, const std::string& xml_file) {
57 py::scoped_ostream_redirect redirect_cout(
58 std::cout, py::module_::import("sys").attr("stdout"));
59 py::scoped_ostream_redirect redirect_cerr(
60 std::cerr, py::module_::import(
"sys").attr(
"stderr"));
64 Invoke a Votca XTP Tool
71 Number of threads to perform the computation
73 Input file specification
PYBIND11_MODULE(xtp_binds, module)
void call_calculator(const std::string &calculatorName, const std::map< std::string, std::string > &dict)
Construct a new pybind11 module object to invoke a votca-xtp Calculator.
void call_tool(const std::string &calculatorName, Index nThreads, std::string xmlfile)
Construct a new pybind11 module object to invoke a votca-xtp QMTool.