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.
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 importedrad_dict
from trackcpp is a vector of the radiation names strings, with this bug, the callrad_dict.index("bnd_mpole_symplectic4_pass")
may fail.