scripts_shorthands module

Define several helper functions.

Todo

Should they be in a module somewhere?

compute_beam(beam_calculator, config)[source]

Create the Accelerator and compute beam in it.

Parameters:
Return type:

tuple[Accelerator, SimulationOutput]

Returns:

An accelerator with its SimulationOutput.

compute_beams(beam_calculators, config_files)[source]

Propagate beam with all BeamCalculator.

Parameters:
Return type:

tuple[list[Accelerator], list[SimulationOutput]]