simulation_output_factory module
Define a class to easily generate the SimulationOutput.
- class SimulationOutputFactoryEnvelope1D(is_multipart, beam_calculator_id, beam_kwargs)[source]
Bases:
SimulationOutputFactoryA class for creating simulation outputs for
Envelope1D.- Parameters:
is_multipart (
bool)beam_calculator_id (
str)beam_kwargs (
BeamKwargs)
- create(accelerator_id, elts, single_elts_results, set_of_cavity_settings)[source]
Transform the outputs of BeamCalculator to a SimulationOutput.
Todo
Patch in transfer matrix to get proper input transfer matrix. In future, input beam will not hold transf mat in anymore.
- Parameters:
accelerator_id (
str)elts (
ListOfElements)set_of_cavity_settings (
SetOfCavitySettings)
- Return type:
- _format_w_kin(elts, single_elts_results)[source]
- Parameters:
elts (
ListOfElements)
- Return type:
- _format_phi_abs(elts, single_elts_results)[source]
- Parameters:
elts (
ListOfElements)
- Return type:
- _get_cav_params(set_of_cavity_settings, elts)[source]
Load and format a dict containing cavity parameters.
- Parameters:
set_of_cavity_settings (
SetOfCavitySettings)elts (
ListOfElements)
- Return type:
- _abc_impl = <_abc._abc_data object at 0x7318fb2fc800>