Pyhdtoolkit

Latest version: v1.7.0

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 9

0.8.4

Changes:
- The machine layout plotting in `plot_latwiss` has been exported to its own function. It is a private function.

Added:
- An `xoffset` variable to `plot_latwiss`, allowing to center the plot on a specific element.

0.8.3

Added:
- A function in `cpymadtools.twiss` to export the entire twiss table to a `TfsDataFrame`.

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 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.

0.8.1

Release 0.8.1 brings a very minor fix.

Fixed:
- Fixed inacurrate logging statements during tunes and chromaticities matching.

Removed:
- Removed the unused `scripts` folder as well as the scripts' dependencies.

0.8.0

Release 0.8.0 brings some fixes and a additional `cpymadtools`.

Added:
- a `twiss` submodule to easily get specific patterns.
- a `track` submodule to handle particle tracking with MAD-X's `TRACK` command.
- utilities to get `TWISS` frame for specific IP or IR locations
- utilities to `MAKETHIN` for (HL)LHC sequences.
- utility to install an AC dipole in LHC beam 1.

Changed:
- The `cpymadtools` now use `madx` as a parameter name instead of `cpymad_instance`.
- Relaxed dependencies.

Fixed:
- Closest tune approach determination now properly handles explicit targets
- Beam definition

0.7.0

- an `errors` submodule to handle (HL)LHC magnetic errors setup
- a `matching` submodule with routines for MAD-X matching and closest tune approach determination
- an `orbit` submodule to handle (HL)LHC orbit variables setup
- a `ptc` submodule with routines for MAD-X PTC operations
- a `special` submodule with routines for personal use cases for (HL)LHC in MAD-X

Additionally, the release brings a cleanup of some other modules, an improved test coverage and a few tweaks to dev configurations.

Page 7 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.