16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_MULTILAYER_PYIMPORT_H
21 #define BORNAGAIN_SAMPLE_MULTILAYER_PYIMPORT_H
23 #ifdef BORNAGAIN_PYTHON
41 const std::string& functionName,
42 const std::string& path =
"");
47 std::vector<std::string>
listOfFunctions(
const std::string& script,
const std::string& path =
"");
Our sample model: a stack of layers one below the other.
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.