Skip to content

Commit

Permalink
Changelog for 0.16.0 (#72)
Browse files Browse the repository at this point in the history
* fix docstring intersphinx references as plot_lattice_layout is now public

* release notes for 0.16.0, which will be published after this PR gets merged
  • Loading branch information
fsoubelet committed Feb 24, 2022
1 parent 8b20b41 commit f93b5ad
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,45 @@ Release Notes

The full list of releases can be found in the Github repository's `releases page <https://github.com/fsoubelet/PyhDToolkit/releases>`.

.. _release_0.16.0:

0.16.0
------

Enhancements
~~~~~~~~~~~~

* A new module, `pyhdtoolkit.cpymadtools.coupling` has been added, and now hosts functions to get the closest tune approach (`~pyhdtoolkit.cpymadtools.coupling.get_closest_tune_approach`) and match coupling through ``Ripken`` parameters (`~pyhdtoolkit.cpymadtools.coupling.match_no_coupling_through_ripkens`).
* The `pyhdtoolkit.cpymadtools.lhc` module has a new function, `~pyhdtoolkit.cpymadtools.lhc.get_lhc_bpms_list`, which returns the list of monitoring BPMs for the current LHC sequence in use.
* The `pyhdtoolkit.cpymadtools.lhc` module now hosts the `~pyhdtoolkit.cpymadtools.lhc.get_lhc_tune_and_chroma_knobs` function.
* The `pyhdtoolkit.cpymadtools.plotters.plot_machine_layout` have now been made public api.
* The ``DEFAULT_TWISS_COLUMNS`` constant in `pyhdtoolkit.cpymadtools.constants` now includes the element length.
* A new private ``_misc`` module has been added to the `~pyhdtoolkit.utils` sub-package.

Bug Fixes
~~~~~~~~~

* The `~pyhdtoolkit.cpymadtools.plotters.AperturePlotter.plot_aperture` and `~pyhdtoolkit.cpymadtools.plotters.LatticePlotter.plot_latwiss` functions now properly propagate the *xoffset* and *xlimits* parameters to `~pyhdtoolkit.cpymadtools.plotters.plot_machine_layout`, which restores the proper functionality for these parameters and speeds up the plotting significantly when they are used.
* The `~pyhdtoolkit.cpymadtools.coupling.get_closest_tune_approach` function now does not provide chromaticiy targets in its matching, as it can mess up the algorithm when given ``CHROM`` which it does.
* The `~pyhdtoolkit.cpymadtools.matching.match_tunes_and_chromaticities` function now properly handles the knobs sent depending on the matching targets. For instance, only tune knobs are varied when only tune targets are provided. Explicitely given knobs are always sent.
* The `~pyhdtoolkit.cpymadtools.twiss.get_twiss_tfs` function now calls the ``TWISS`` command from ``MAD-X`` and accepts keyword arguments.

Documentation
~~~~~~~~~~~~~

* All docstrings have been reviewed and now include examples. Those mentioning caveats have been given special admonitions to do so.
* The documentation has gone through a **major** overhaul and is now built on ``sphinx`` and its extensions. It now also includes a quickstart tutorial, a gallery of examples, a contributing guide and a reference bibliography. Feedback on the new documentation is very welcome.

Maintenance
~~~~~~~~~~~

* The deprecated `pyhdtoolkit.cpymadtools.special` module has been removed.
* The functions in `pyhdtoolkit.cpymadtools.plotters` do not enforce any ``rcParams`` anymore, and these are fully left to the user.
* The `pyhdtoolkit.cpymadtools.lhc.match_no_coupling_through_ripkens`, `pyhdtoolkit.cpymadtools.matching.get_closest_tune_approach` and `pyhdtoolkit.cpymadtools.matching.get_lhc_tune_and_chroma_knobs` functions have been deprecated in favor of their counterparts in other modules. They will be removed in a future release.

See `v0.16.0 release notes on GitHub <https://github.com/fsoubelet/PyhDToolkit/releases/tag/0.16.0>`_ and the `full changes since v0.15.1 <https://github.com/fsoubelet/PyhDToolkit/compare/0.15.1...0.16.0>`_.


.. _release_0.15.1:

0.15.1
Expand Down
4 changes: 2 additions & 2 deletions pyhdtoolkit/cpymadtools/plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def plot_aperture(
height of sextupole patches.
color (str): the color argument given to the aperture lines. Defaults to `None`, in which case
the first color in your `rcParams`'s cycler will be used.
**kwargs: any keyword argument will be transmitted to `~.plotters._plot_machine_layout`, later on
**kwargs: any keyword argument will be transmitted to `~.plotters.plot_machine_layout`, later on
to `~.plotters._plot_lattice_series`, and then `~matplotlib.patches.Rectangle`, such as ``lw`` etc.
Returns:
Expand Down Expand Up @@ -637,7 +637,7 @@ def plot_latwiss(
k2l_lim (Tuple[float, float]): if given, sextupole patches will be plotted on the layout subplot of
the figure, and the provided values act as vertical axis limits for the k2l values used for the
height of sextupole patches.
**kwargs: any keyword argument will be transmitted to `~.plotters._plot_machine_layout`, later on
**kwargs: any keyword argument will be transmitted to `~.plotters.plot_machine_layout`, later on
to `~.plotters._plot_lattice_series`, and then `~matplotlib.patches.Rectangle`, such as ``lw`` etc.
Returns:
Expand Down

0 comments on commit f93b5ad

Please sign in to comment.