SixTrack / sixtracklib

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

python beam_elements: fixing bug in temporary Element.from_mad #96

Closed aoeftiger closed 5 years ago

aoeftiger commented 5 years ago

In the python library, sixtracklib.beam_elements.Element.from_mad now reproduces the same behaviour as it had before the recent changes in commit c070fb6b9e7a3ae3c08050e92a8751f7103fe0b4 (here append_line was integrated into from_mad but it misses instantiating the class before appending the elements).

(same as PR #95 , just reorganised into separate branch..)