at.load.parser#
Classes
|
String expression parameter. |
Abstract base class for string expression parsers. |
- class StrParameter(parser, expr)[source]#
Bases:
objectString expression parameter.
A StrParameter represents an expression which can be evaluated in the context of a StrParser. This is typically used for MAD-X style parameters where expressions can reference other parameters.
Initialise a string parameter.
- Parameters:
The expression may contain parameter names, arithmetic operators and mathematical functions, depending on the capabilities of the parser.