19 "Enge class is a field element that models a Enge function.\n"
21 "It is referenced and set to field elements by use of the OPAL name (note not\n"
22 "any python name). The OPAL name is set/retrieved using 'set_opal_name' and\n"
23 "'get_opal_name' respectively.\n";
28 "enge module holds an Enge end field 'plugin' class for use with field models\n";
34 auto elementClass = element.
make_class(
"Enge");
35 elementClass.def(
"function", &PyOpal::PyEndFieldModel::function<OpalEnge>);
36 elementClass.def(
"update", &PyOpalObjectNS::update<OpalEnge>);
void registerExceptions()
Register exception translations with boost.
void Initialise()
Globals namespace provides routines to initialise global objects:
const char * module_docstring
BOOST_PYTHON_MODULE(enge)
PyOpalObject<C> is the basic wrapper class for Opal Objects.
boost::python::class_< PyC > make_class(const char *className)
This is the basic method to make a class for OpalObjects.