atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Fix bug reading atM66 elements from matlab lattice #779

Closed pcsch closed 3 weeks ago

pcsch commented 3 weeks ago

Dear all,

when loading a lattice in python from a matlab ".m" file all class names are converted to lower case. As almost all matlab element creation functions are lower case this works, with the exception of atM66. Therefore a lattice with an atM66 element raises a warning and the element is not included in the python lattice.

This pull requests adds "M66" with an upper case M to the alias map in at/load/utils.py to correctly read this element.