24 std::vector<PyOpalObjectNS::AttributeDef>
39 "VerticalFFAMagnet class is a field element that models a Vertical FFA magnet.";
41 namespace PyVerticalFFAMagnet {
43 const char*
module_docstring =
"vertical_ffa_magnet contains the VerticalFFAMagnet class";
constexpr double e
The value of.
void registerExceptions()
Register exception translations with boost.
void Initialise()
Globals namespace provides routines to initialise global objects:
const char * module_docstring
BOOST_PYTHON_MODULE(vertical_ffa_magnet)
PyOpalObject<C> is the basic wrapper class for Opal Objects.
void addGetFieldValue(PYCLASS &pyclass, double distanceUnits, double timeUnits, double bfieldUnits, double efieldUnits)
Add a "get_field_value" method to the python class (for elements that expose a field)
boost::python::class_< PyC > make_element_class(const char *className)
This is the basic method to make a class for elements.