Release 0.8.2
Release 0.8.2 brings some fixes QoL additions.
Added:
- A
maths.utils
module with convenience functions related to magnitude. - An
optics.ripken
module with functions to calculate beam size according to Lebedev and Bogacz's formalism. - A convenience logging setup function in
utils.defaults
. plot_latwiss
now adds a legend for different elements in the layout.plot_latwiss
can now optionally plot BPM patches.plot_latwiss
now accepts kwargs that will be transmitted to the layout plotting function.- QoL information in various docstrings.
Changed:
- The
PLOT_PARAMS
have been moved toutils.defaults
. - The
get_pattern_twiss
default argument values now select the entire twiss table. plot_latwiss
changed the parameterplot_sextupoles
tok2l_lim
, creating a dedicated axis for sextupole patches in the layout.
Fixed:
get_pattern_twiss
now properly capitalizes variable names in the returnedTfsDataFrame
.plot_latwiss
now only draws elements in the desired area whenxlimits
is provided, for a drastic speedup on big machines.
Removed:
- The
plotting.settings
module has been removed. plot_latwiss
doesn't force thepdf
format when saving the figure anymore.