Repository navigation
Changes:
- Use compensated summation in
EnergyProgramto reduce accumulated roundoff in the turn-to-time mapping, improving longitudinal accuracy with densely sampled energy programs. - Fix unary-sign precedence in the native MAD-X loader:
-a^2is interpreted as-(a^2). Preserve signed exponents and MAD-X's left-associative exponentiation convention. - Support
xt.STARTandxt.ENDinTwissTable.get_twiss_init, including sliced and reversed tables. - Read attributes from the original collective elements when building line tables and surveys. Support Python attributes and collective elements stored in separate buffers, while preserving the existing MultiSetter path for non-collective elements.
- Improve the numerical stability of
RBendlength calculations at small bending angles. Correctly account forrbend_angle_diffat zero angle, with a shortcut that avoids evaluating sinc in that case. - Raise a clear
TypeError, identifying the element name and type, when serializing a line or environment containing an element without a callableto_dictmethod.
Full Changelog: v0.118.4...v0.118.5