4#ifdef CYCLUS_WITH_PYTHON
38Agent*
MakePyAgent(std::string lib, std::string agent,
void* ctx) {
77std::string
PyFindModule(std::string lib) {
return std::string(
""); };
90 "Cyclus was not built with Python bindings.");
96 "Cyclus was not built with Python bindings.");
The abstract base class used by all types of agents that live and interact in a simulation.
For validating files received via IO.
static int import_eventhooks(void)
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
bool PY_INTERP_INIT
Whether or not the Python interpreter has been initilized.
void InitFromPyAgent(Agent *src, Agent *dst, void *ctx)
Initializes a Python agent fron another agent.
void ClearPyAgentRefs(void)
Removes all Python agents from the internal cache.
int PY_INTERP_COUNT
Because of NumPy #7595, we can only initialize & finalize the Python interpreter once.
void PyDelAgent(int i)
Removes a single Python agent from the reference cache.
std::string PyFindModule(std::string lib)
Finds a Python module and returns its filename.
void PyStop(void)
Closes the current Python session.
Agent * MakePyAgent(std::string lib, std::string agent, void *ctx)
Finds a Python module and returns an agent pointer from it.
void PyStart(void)
Initialize Python functionality, this is a no-op if Python was not installed along with Cyclus.
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters
static int import_pyinfile(void)
#define clear_pyagent_refs
static int import_pymodule(void)
#define init_from_py_agent
#define py_call_listeners