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