Closed cr-xu closed 1 year ago
Now added tests for Dipole (w & w/o fringe field), Solenoid, and Aperture
Looks good! Did testing actually expose bugs? 😄
Looks good! Did testing actually expose bugs? 😄
Actually yes 😂 so indeed having proper tests is important.
Added the following lattice elements:
ParticleBeam
, otherwise ignoredself.is_active = True
Added
tilt
forQuadrupole
, set tilt to pi/4 for skew-quadrupoleMoved some repeated transfer map calculations into a separate file:
track_method.py
Addresses #42