BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PyUtils.h File Reference

Defines PyUtils namespace. More...

Include dependency graph for PyUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 PyUtils
 

Macros

#define BORNAGAIN_BASE_PY_PYUTILS_H
 

Functions

PyObjectPyUtils::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...
 

Detailed Description

Defines PyUtils namespace.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file PyUtils.h.

Macro Definition Documentation

◆ BORNAGAIN_BASE_PY_PYUTILS_H

#define BORNAGAIN_BASE_PY_PYUTILS_H

Definition at line 21 of file PyUtils.h.