0.15.0
Enhancements
The
LatticePlotter.plot_latwissfunction in thecpymadtools.plottersmodule can now plot the k1 gradient of dipoles that have one if asked which will appear with a lower alpha than regular quadrupoles. A new boolean parameter plot_dipole_k1 is used for this.Type hints have been added to all elements of the
cpymadtools.constantsmodule.A new module,
cpymadtools.correctors, has been added with currently functionality to query LHC triplet and arc corrector powering status (relatively to their max powering).A new function,
reset_bump_flagsin thecpymadtools.specialmodule which will reset all LHC IP bump flags to 0.Several new constants have been introduced in the
cpymadtools.constantsmodule:Supplementing the
DEFAULT_TWISS_COLUMNSlist, a similar but slightly different one,MONITOR_TWISS_COLUMNS, has been added with elements present in OMC macros.Constants lists for LHC IP bump flags have been added:
LHC_CROSSING_ANGLE_FLAGS,LHC_PARALLEL_SEPARATION_FLAGS,LHC_IP_OFFSET_FLAGS,LHC_ANGLE_FLAGS,LHC_EXPERIMENT_STATE_FLAGSandLHC_IP2_SPECIAL_FLAGS.Constants list for LHC triplets corrector knobs have been added:
LHC_KQSX_KNOBS,LHC_KCSX_KNOBS,LHC_KCSSX_KNOBS,LHC_KCOX_KNOBS,LHC_KCOSX_KNOBS,LHC_KCTX_KNOBSwith their signification in comments.Constants list for LHC arc corrector knobs have been added:
LHC_KQTF_KNOBS,LHC_KQS_KNOBS,LHC_KSF_KNOBS,LHC_KSS_KNOBS,LHC_KCS_KNOBS,LHC_KCO_KNOBS,LHC_KCD_KNOBS,LHC_KO_KNOBSwith their signification in comments.
Maintenance
The
CORRECTOR_LIMITSdict of dict in thecpymadtools.constantsmodule has been changed to a simple dictionary and renamedHLLHC_CORRECTOR_LIMITSas it only contained HighLumi values.Exceptions are properly logged as exceptions, with stack information.
The entire
cpymadtools.specialmodule is deprecated, and its contents have been mirrored in a newcpymadtools.lhcmodule. Users are encouraged to use the new module, ascpymadtools.specialwill be removed in a future release.
See v0.15.0 release notes on GitHub and the full changes since v0.14.1.