scripts_shorthands module
Define several helper functions.
Todo
Should they be in a module somewhere?
- compute_beam(beam_calculator, config)[source]
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, config_files)[source]
Propagate beam with all
BeamCalculator.- Parameters:
beam_calculators (
Collection[BeamCalculator])
- Return type: