element_parameters module
Define a base class for ElementBeamCalculatorParameters.
It is an attribute of an Element, and holds parameters that depend on
both the Element under study and the BeamCalculator solver
that is used.
Currently, it is used by Envelope1D and Envelope3D only, as
TraceWin handles it itself.
- class ElementBeamCalculatorParameters[source]
Bases:
ABCParent class to hold solving parameters. Attribute of
Element.Used by
Envelope1DandEnvelope3D.- get(*keys, to_numpy=True, **kwargs)[source]
Get attributes from this class.
- Parameters:
*keys (
Literal['abs_mesh','d_z','n_steps','rel_mesh','s_in','s_out','transf_mat_function']) – One or more attribute names to retrieve.to_numpy (
bool, default:True) – If True, convert lists to NumPy arrays. If False, convert NumPy arrays to lists.**kwargs (
Any) – Reserved for future extensions.
- Returns:
A single value if one key is given, or a tuple of values.
- Return type:
Any
- _abc_impl = <_abc._abc_data object at 0x70e278e6b5c0>