15 #ifndef BORNAGAIN_CORE_PYIO_PYIMPORT_H
16 #define BORNAGAIN_CORE_PYIO_PYIMPORT_H
18 #ifdef BORNAGAIN_PYTHON
37 const std::string& functionName,
38 const std::string& path =
"");
43 std::vector<std::string>
listOfFunctions(
const std::string& script,
const std::string& path =
"");
std::vector< std::string > listOfFunctions(const std::string &script, const std::string &path="")
Returns list of functions defined in the script.
std::unique_ptr< MultiLayer > createFromPython(const std::string &script, const std::string &functionName, const std::string &path="")
Creates a multi layer by running python code in embedded interpreter.
Our sample model: a stack of layers one below the other.