scripts_shorthands module
Define several helper functions.
Todo
Should they be in a module somewhere?
- compute_beam(beam_calculator: BeamCalculator, config: dict[str, dict[str, Any]]) tuple[Accelerator, SimulationOutput]
Create the
Acceleratorand compute beam in it.- Parameters:
beam_calculator (BeamCalculator) – Solver to use.
config (dict[str, dict[str, Any]]) – Full configuration dictionary.
- Returns:
An accelerator with its
SimulationOutput.- Return type:
- compute_beams(beam_calculators: Collection[BeamCalculator], config_files: dict[str, Any]) tuple[list[Accelerator], list[SimulationOutput]]
Propagate beam with all
BeamCalculator.