Skip to content

Commit

Permalink
remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Aug 12, 2024
1 parent 55edac2 commit 8848f0b
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"sphinx.ext.coverage", # Collect doc coverage stats
"sphinx.ext.doctest", # Test snippets in the documentation
"sphinx.ext.githubpages", # Publish HTML docs in GitHub Pages
"sphinx.ext.intersphinx", # Link to other projects documentation
"sphinx.ext.intersphinx", # Link to other projects' documentation
"sphinx.ext.mathjax", # Render math via JavaScript
"sphinx.ext.napoleon", # Support for NumPy and Google style docstrings
"sphinx.ext.todo", # Support for todo items
Expand Down Expand Up @@ -214,7 +214,7 @@
#
html_static_path = ["_static"]

# A dictionary of values to pass into the template engines context for all
# A dictionary of values to pass into the template engine's context for all
# pages. Single values can also be put in this dictionary using the
# -A command-line option of sphinx-build.
html_context = {
Expand Down
12 changes: 6 additions & 6 deletions examples/demo_acd_tracking_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
AC Dipole Driven Tracking Spectrum
==================================
This example shows how to use the `~.lhc.install_ac_dipole_as_kicker` and
`~.track.track_single_particle` function to track a particle with the
This example shows how to use the `~.lhc.install_ac_dipole_as_kicker` and
`~.track.track_single_particle` function to track a particle with the
``TRACK`` command of ``MAD-X``, and visualise its coordinates and spectrum.
In this example we will use the LHC lattice to illustrate the ACD tracking
In this example we will use the LHC lattice to illustrate the ACD tracking
workflow when using `~pyhdtoolkit.cpymadtools`.
.. note::
This is very similar to the :ref:`free tracking example <demo-free-tracking>`
with the difference that there is special care to take to install the AC Dipole
element. It is recommended to read that tutorial first as this one will focus
This is very similar to the :ref:`free tracking example <demo-free-tracking>`
with the difference that there is special care to take to install the AC Dipole
element. It is recommended to read that tutorial first as this one will focus
on the specificities of the AC Dipole setup.
.. important::
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_aperture.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Accelerator Aperture
====================
This example shows how to use the `~.plotting.aperture.plot_aperture` and
This example shows how to use the `~.plotting.aperture.plot_aperture` and
`~.plotting.aperture.plot_physical_apertures` functions to visualise the
available aperture in your machine, with the LHC used for this example.
Expand Down
10 changes: 5 additions & 5 deletions examples/demo_beam_enveloppe.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
madx.input(
f"""
circum = {circumference};
n_cells = {n_cells}; ! Number of cells
n_cells = {n_cells}; ! Number of cells
lcell = {l_cell};
lq = {l_quad}; ! Length of a quadrupole
ldip = {l_bend};
Expand All @@ -70,14 +70,14 @@
mb: sbend, l=ldip, angle=2.0*pi/(4*n_cells), apertype=ellipse, aperture={{{h_gap_dipole}, {v_gap_dipole}}};
f = {f_m};
! Define quadrupoles as multipoles
qf: multipole, knl:={{0,1/f+qtrim_f}};
! Define quadrupoles as multipoles
qf: multipole, knl:={{0,1/f+qtrim_f}};
qd: multipole, knl:={{0,-1/f+qtrim_d}};
qf: quadrupole, l=lq, K1:=1/f/lq + qtrim_f/lq, apertype=ellipse, aperture={{{r_quadrupole}, {r_quadrupole}}};
qf: quadrupole, l=lq, K1:=1/f/lq + qtrim_f/lq, apertype=ellipse, aperture={{{r_quadrupole}, {r_quadrupole}}};
qd: quadrupole, l=lq, K1:=-1/f/lq + qtrim_d/lq, apertype=ellipse, aperture={{{r_quadrupole}, {r_quadrupole}}};
! Define the sextupoles as multipole
! ATTENTION: must use knl:= and NOT knl= to match later!
! ATTENTION: must use knl:= and NOT knl= to match later!
lsex = 0.00001; ! dummy length, only used in the sequence
msf: multipole, knl:={{0,0,ksf}};
msd: multipole, knl:={{0,0,ksd}};
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_ir_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
to assign magnet errors in the Insertion Region magnets of the LHC.
.. warning::
The implementation of this function makes it valid only for LHC IP IRs, which are
The implementation of this function makes it valid only for LHC IP IRs, which are
1, 2, 5 and 8. Other IRs have different layouts that are incompatible.
.. important::
Expand Down
10 changes: 5 additions & 5 deletions examples/demo_lhc_rigid_waist_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
LHC Rigid Waist Shift
=====================
This example shows how to use the `~.lhc.apply_lhc_rigidity_waist_shift_knob`
function to force a waist shift at a given IP and break the symmetry of the
:math:`\\beta`-functions in the Interaction Region. This is done by
This example shows how to use the `~.lhc.apply_lhc_rigidity_waist_shift_knob`
function to force a waist shift at a given IP and break the symmetry of the
:math:`\\beta`-functions in the Interaction Region. This is done by
over-powering one triplet knob and under-powering the other, by the same
powering delta.
In :cite:t:`PRAB:Soubelet:Rigid_Waist_Shift_Method_Local_Coupling_Correction_LHC_IR`
(2023) one can find out about studies and achievements at the LHC done with the Rigid
Waist Shift.
We will do a comparison of the interaction region situation before and after
applying a rigid waist shift, and look in more details at the waist shift
We will do a comparison of the interaction region situation before and after
applying a rigid waist shift, and look in more details at the waist shift
itself.
.. note::
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_lhc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
===============
These examples show how to use the functions in `pyhdtoolkit.cpymadtools.lhc._setup`
managers to easily and quickly set up LHC simulations. These are exported and
managers to easily and quickly set up LHC simulations. These are exported and
available at the level of the `pyhdtoolkit.cpymadtools.lhc` module.
.. note::
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_track_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Free Tracking Spectrum
======================
This example shows how to use the `~.track.track_single_particle` function to track a
This example shows how to use the `~.track.track_single_particle` function to track a
particle with the ``TRACK`` command of ``MAD-X``, and visualise its coordinates and spectrum.
In this example we will use the LHC lattice to illustrate the tracking workflow when using
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_tune_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Tune Diagram
============
This example shows how to use the `~.plotting.tune.plot_tune_diagram` function
This example shows how to use the `~.plotting.tune.plot_tune_diagram` function
to visualise resonance lines up to certain orders.
"""
# sphinx_gallery_thumbnail_number = -1
Expand Down

0 comments on commit 8848f0b

Please sign in to comment.