|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines PyUtils namespace. More...
Go to the source code of this file.
Namespaces | |
| PyUtils | |
Macros | |
| #define | BORNAGAIN_BASE_PY_PYUTILS_H |
Functions | |
| PyObject * | PyUtils::createNumpyArray (const std::vector< double > &data) |
| void | PyUtils::import_bornagain (const std::string &path="") |
| Imports BornAgain from given location. If path is empty, tries to rely on PYTHONPATH. More... | |
| std::string | PyUtils::pythonRuntimeInfo () |
| Returns multi-line string representing PATH, PYTHONPATH, sys.path and other info. More... | |
| std::string | PyUtils::pythonStackTrace () |
| Returns string representing python stack trace. More... | |
| std::string | PyUtils::toString (char *c) |
| Converts char to string. In the case of nullptr will return an empty string. More... | |
| std::string | PyUtils::toString (PyObject *obj) |
| Converts PyObject into string, if possible, or throws exception. More... | |
| std::string | PyUtils::toString (wchar_t *c) |
| std::vector< std::string > | PyUtils::toVectorString (PyObject *obj) |
| Converts PyObject into vector of strings, if possible, or throws exception. More... | |
Defines PyUtils namespace.
Definition in file PyUtils.h.