0.8.2
Enhancements
Added a
maths.utilsmodule with convenience functions related to magnitude.Added a
optics.ripkenmodule with functions to calculate beam size according to Lebedev and Bogacz’s formalism.Added a convenience logging setup function in
utils.defaults.plot_latwissnow adds a legend for different elements in the layout.plot_latwisscan now optionally plot BPM patches.plot_latwissnow accepts kwargs that will be transmitted to the layout plotting function.
Bug Fixes
get_pattern_twissnow properly capitalizes variable names in the returned TfsDataFrame.plot_latwissnow only draws elements in the desired area when xlimits is provided, for a drastic speedup on big machines.
Maintenance
The PLOT_PARAMS have been moved to
utils.defaults.The
get_pattern_twissdefault argument values now select the entire twiss table.plot_latwisschanged the parameter plot_sextupoles to k2l_lim, creating a dedicated axis for sextupole patches in the layout.The
plotting.settingsmodule has been removed.plot_latwissdoesn’t force the PDF format when saving the figure anymore.
See v0.8.2 release notes on GitHub and the full changes since v0.8.1.