lnls-fac / pyaccel

Python module for beam dynamics tracking and optics calculations
MIT License
7 stars 5 forks source link

Import trackcpp's vector<string> as python tuples #137

Closed VitorSouzaLNLS closed 1 month ago

VitorSouzaLNLS commented 4 months ago

This changes avoid a swig "bug" that depends on the swig version and differ from machine to machine.

The bug is: depending on the machine and/or the swig version, the exported cpp string vector don't bring the classmethod index (Example: the imported rad_dict from trackcpp is a vector of the radiation names strings, with this bug, the call rad_dict.index("bnd_mpole_symplectic4_pass") may fail.