debug module
Define various functions.
Todo
Clean this, a lot of old things that may not be used.
Todo
Ellipse plot could be better
- compute_error_transfer_matrix(t_m, t_m_ref, output=False)[source]
Compute and output error between transfer matrix and ref.
- load_phase_space(accelerator)[source]
Load Partran phase-space data.
- Phase-space files are obtained with:
Input data & Beam: Partran Phase spaces or beam distributions: Output at element n Then save all particle as ASCII.
- Parameters:
accelerator (
Accelerator)- Return type: