Skip to content

Commit 465b0d2

Browse files
authored
Doc fixes (#74)
* fix plot title on rigid waist shift * add html layout extension file to increase width * update lock file * info on rwsk value meaning
1 parent 374fd0e commit 465b0d2

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

docs/_templates/layout.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "!layout.html" %}
2+
{% block footer %} {{ super() }}
3+
4+
<style>
5+
.wy-nav-content { max-width: 67.5%; }
6+
</style>
7+
8+
{% endblock %}

examples/demo_lhc_rigid_waist_shift.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
# which side of the IP to shift the beam waist. See the function documentation
8787
# for more details. After applying the knob, we will re-match to our working point
8888
# to make sure we do not deviate.
89+
#
90+
# .. hint::
91+
# A waist shift knob setting of 1 will result in a 0.5% change in the triplets
92+
# knob powering. The individual triplet magnets trims are not affected.
8993

9094
lhc.apply_lhc_rigidity_waist_shift_knob(madx, rigidty_waist_shift_value=1.5, ir=1)
9195
matching.match_tunes_and_chromaticities(madx, "lhc", "lhcb1", 62.31, 60.32, 2.0, 2.0)
@@ -101,7 +105,7 @@
101105
IR1_waist_shift = LatticePlotter.plot_latwiss(
102106
madx,
103107
figsize=(16, 11),
104-
title="LHCB1 IR1 - No Rigid Waist Shift",
108+
title="LHCB1 IR1 - With Rigid Waist Shift",
105109
disp_ylim=(-1.5, 3),
106110
xoffset=ip1s,
107111
xlimits=(-200, 200),
@@ -140,7 +144,7 @@
140144
#
141145
# .. tip::
142146
# The differences observed will vary depending on the strength of the knob,
143-
# which we choose with the **rigidty_waist_shift_value** parameter.
147+
# which we choose with the *rigidty_waist_shift_value* parameter.
144148
#
145149
# Let's not forget to close the rpc connection to ``MAD-X``:
146150

poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)