SixTrack / sixtracklib

Library for single charged particle simulations in accelerators
GNU Lesser General Public License v2.1
12 stars 16 forks source link

beam_elements, python: using DriftExact by default for from_mad #72

Closed aoeftiger closed 5 years ago

aoeftiger commented 5 years ago

When converting MAD-X lattices, this patch will allow to use DriftExact instead of the truncated Drift via a flag.

The default setting is equivalent to what MAD-X does, so it will take DriftExact instead of Drift, as the MAD-X thin lens tracking also uses the exact drift.

Addresses #71 .