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 to `utils.defaults`.
- The `get_pattern_twiss` default argument values now select the entire twiss table.
- `plot_latwiss` changed the parameter `plot_sextupoles` to `k2l_lim`, creating a dedicated axis for sextupole patches in the layout.
Fixed:
- `get_pattern_twiss` now properly capitalizes variable names in the returned `TfsDataFrame`.
- `plot_latwiss` now only draws elements in the desired area when `xlimits` is provided, for a drastic speedup on big machines.
Removed:
- The `plotting.settings` module has been removed.
- `plot_latwiss` doesn't force the `pdf` format when saving the figure anymore.