Explanation: The attribute H (sextuple strength) exists as a property in python, but does not exist in Matlab. It is not present in .mat files created in Matlab, but does exist in .mat files created in python. When reading such a file in Matlab, the sextupoles get an unexpected H attribute, which has no detrimental effect, However when saving in a .m file, H is printed as a "exotic" attribute, which is wrongly interpreted.
In this PR, H does not appear in .mat files created in python.
This fixes a bug reported by @oscarxblanco here.
The following sequence:
throws an Exception when reading sextuples.
Explanation: The attribute
H
(sextuple strength) exists as a property in python, but does not exist in Matlab. It is not present in .mat files created in Matlab, but does exist in .mat files created in python. When reading such a file in Matlab, the sextupoles get an unexpectedH
attribute, which has no detrimental effect, However when saving in a .m file,H
is printed as a "exotic" attribute, which is wrongly interpreted.In this PR,
H
does not appear in .mat files created in python.