Closed roman-martin closed 4 years ago
I wanted to re-write the I'll apply_madx_errors
method anyway to avoid using the detour via esave
and readtable
..work on that and include your check :+1:
Fixed by https://github.com/SixTrack/pysixtrack/pull/36 https://github.com/SixTrack/pysixtrack/pull/37 .
However, PySixTrack only supports dx
, dy
and multipole errors so far. Try to use dx
instead of arex
(PySixTrack also gives you a warning on that).
Example:
results in
The problem is that all errors are in the same madx.esave output file and although knl are all zero, apply_madx_errors() tries to apply them to the collimator marker. An easy fix would be to only call add_multipole_error_to() if any non-zero knl or ksl are present in the list.