Skip to content

Commit ddb7400

Browse files
authored
Changes for 0.20.0 (#86)
* addition of complex cminus calculation * moved cminus calculation to coupling module * final _op knobs functionality additions / adjustments * add kmodulation function * tests for plot_latwiss with dipole k1 * doc, full coupling rdts function, and private helper to filter on coupling RDTs * add lhc global coupling matching routine * add lhc colin carry over function * increase requirement on tfs-pandas * update release notes * tests
1 parent d925fd8 commit ddb7400

32 files changed

+15007
-420
lines changed

docker/environment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ dependencies:
225225
- importlib-resources==5.4.0
226226
- minrpc==0.1.0
227227
- optics-functions==0.1.2
228-
- pyhdtoolkit==0.19.2
228+
- pyhdtoolkit==0.20.0
229229
- pynaff==1.1.4
230-
- scipy==1.8.1
230+
- scipy==1.9.0

docs/release.rst

+34-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,36 @@ Release Notes
33

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

6+
.. _release_0.20.0:
7+
8+
0.20.0
9+
------
10+
11+
Enhancements
12+
~~~~~~~~~~~~
13+
14+
* The `~pyhdtoolkit.cpymadtools.coupling.get_closest_tune_approach` function now supports the `run3` boolean argument introduced in version `0.19.1`, which is used for the ``LHC`` case.
15+
* The `~pyhdtoolkit.cpymadtools.coupling` module now has a new function, `~pyhdtoolkit.cpymadtools.coupling.get_coupling_rdts`, which will return the coupling Resonance Driving Terms throughout all elements in the sequence as columns added to the `tfs.TfsDataFrame` returned after a ``TWISS`` call.
16+
* The `~pyhdtoolkit.cpymadtools.coupling` module now has a new function, `~pyhdtoolkit.cpymadtools.coupling.get_cminus_from_coupling_rdts`, which first calls the new `~pyhdtoolkit.cpymadtools.coupling.get_coupling_rdts` and then wraps the `optics_functions.coupling.closest_tune_approach` to provide an estimate of the :math:`C^{-}` according to the desired calculation method.
17+
* The `~pyhdtoolkit.cpymadtools.lhc` module now has a new function, `~pyhdtoolkit.cpymadtools.lhc.carry_colinearity_knob_over`, which will carry over the powering of ``MQSX`` magnets around an IP to a single side.
18+
* The `~pyhdtoolkit.cpymadtools.lhc` module now has a new function, `~pyhdtoolkit.cpymadtools.lhc.correct_lhc_global_coupling`, which will runs a tricky routine to minimize the global :math:`|C^{-}|` through the ``dqmin`` variable.
19+
* The `~pyhdtoolkit.cpymadtools.lhc` module now has a new function, `~pyhdtoolkit.cpymadtools.lhc.do_kmodulation` which simulates a `K-Modulation` of an inner triplet quadrupole ``Q1`` in a desired IR, and returns a `tfs.TfsDataFrame` of the results.
20+
21+
Documentation
22+
~~~~~~~~~~~~~
23+
24+
* Various docstrings have been corrected on wrong details, and some examples have been added.
25+
26+
Maintenance
27+
~~~~~~~~~~~
28+
29+
* Various private helpers have been added through different modules.
30+
* The minimum required version of `tfs-pandas` has been raised to ``3.2.0``.
31+
* Increased test coverage.
32+
33+
See `v0.20.0 release notes on GitHub <https://github.com/fsoubelet/PyhDToolkit/releases/tag/0.20.0>`_ and the `full changes since v0.19.1 <https://github.com/fsoubelet/PyhDToolkit/compare/0.19.1...0.20.0>`_.
34+
35+
636
.. _release_0.19.1:
737

838
0.19.1
@@ -11,11 +41,11 @@ The full list of releases can be found in the Github repository's `releases page
1141
Maintenance
1242
~~~~~~~~~~~
1343

14-
* The `~pyhdtoolkit.cpymadtools.lhc.get_lhc_tune_and_chroma_knobs` function now can has a new boolean argument, `run3`, to determine if the standard `_op` knobs should be returned.
44+
* The `~pyhdtoolkit.cpymadtools.lhc.get_lhc_tune_and_chroma_knobs` function now has a new boolean argument, `run3`, to determine if the standard `_op` knobs should be returned.
1545
* The functions in the `~pyhdtoolkit.cpymadtools.matching` module now also have the `run3` argument, and will call the Run 3 `_op` knobs if this argument is set to `True` and the `LHC` accelerator is passed.
1646
* Fixes have been provided to the various Github Actions workflow of the repository.
1747

18-
See `v0.19.1 release notes on GitHub <https://github.com/fsoubelet/PyhDToolkit/releases/tag/0.19.1>`_ and the `full changes since v0.18.0 <https://github.com/fsoubelet/PyhDToolkit/compare/0.19.0...0.19.1>`_.
48+
See `v0.19.1 release notes on GitHub <https://github.com/fsoubelet/PyhDToolkit/releases/tag/0.19.1>`_ and the `full changes since v0.19.0 <https://github.com/fsoubelet/PyhDToolkit/compare/0.19.0...0.19.1>`_.
1949

2050

2151
.. _release_0.19.0:
@@ -26,8 +56,8 @@ See `v0.19.1 release notes on GitHub <https://github.com/fsoubelet/PyhDToolkit/r
2656
Enhancements
2757
~~~~~~~~~~~~
2858

29-
* The `pyhdtoolkit.plotting` package has a new sub-package, `pyhdtoolkit.plotting.sbs` with modules to plot coupling (`~pyhdtoolkit.plotting.sbs.coupling`) and phase (`~pyhdtoolkit.plotting.sbs.phase`) segment-by-segment results.
30-
* The `pyhdtoolkit.plotting.sbs` package has a new utility module, `~pyhdtoolkit.plotting.sbs.utils`, with helpful functions for plotting.
59+
* The `pyhdtoolkit.plotting` package has a new sub-package, `pyhdtoolkit.plotting.sbs` with modules to plot coupling (`~pyhdtoolkit.plotting.sbs.coupling`) and phase (`~pyhdtoolkit.plotting.sbs.phase`) segment-by-segment results.
60+
* The `pyhdtoolkit.plotting.sbs` package has a new utility module, `~pyhdtoolkit.plotting.sbs.utils`, with helpful functions for plotting.
3161
* The `pyhdtoolkit.cpymadtools.lhc` module has a new function, `~pyhdtoolkit.cpymadtools.lhc.get_lhc_bpms_twiss_and_rdts` to easily get coupling RDTs at all observation points (BPMs) in the LHC sequence.
3262

3363
Documentation

0 commit comments

Comments
 (0)