Skip to content

Commit c69f1e9

Browse files
committed
doc
1 parent d4e8bb0 commit c69f1e9

File tree

11 files changed

+50
-21
lines changed

11 files changed

+50
-21
lines changed

chroma_gui/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1+
"""
2+
The Chroma GUI
3+
~~~~~~~~~~~~~~
4+
5+
``chroma_gui`` is a tool to compute non-linear chromaticity via
6+
measurements done in the CCC.
7+
8+
:copyright: pyLHC/OMC-Team working group.
9+
"""
10+
11+
__title__ = "omc3-gui"
12+
__description__ = "A tool to compute non-linear chromaticity via measurements done in the CCC."
13+
__url__ = "https://github.com/pylhc/chroma_gui"
114
__version__ = "0.0.26"
15+
__author__ = "pylhc"
16+
__author_email__ = "[email protected]"
17+
18+
__all__ = [__version__]

chroma_gui/chromaticity/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Chromaticity
3-
------------
2+
Chromaticity Module
3+
-------------------
44
55
This module contains functions related to the chromaticity.
66
"""

chroma_gui/chromaticity/chroma_fct.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Chromaticity Functions
3-
---------------------
3+
----------------------
44
55
Functions to compute the chromaticity.
66
"""
@@ -18,11 +18,16 @@
1818
def chromaticity_func(x, *args):
1919
"""
2020
Returns the taylor expansion of the chromaticity
21-
q0
22-
+ q1 * x
23-
+ q2 * x**2 * 1/2!
24-
+ q3 * x**3 * 1/3!
25-
...
21+
22+
23+
.. code-block::
24+
25+
q0
26+
+ q1 * x
27+
+ q2 * x**2 * 1/2!
28+
+ q3 * x**3 * 1/3!
29+
...
30+
2631
"""
2732
res = 0
2833
for order, val in enumerate(args):

chroma_gui/cleaning/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Cleaning
3-
--------
2+
Cleaning Module
3+
---------------
44
55
Functions to clean the chromaticity data.
66
"""

chroma_gui/corrections/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Corrections
3-
-----------
2+
Corrections Module
3+
------------------
44
55
This module contains the functions to correct chromaticity via the response matrix.
66
"""

chroma_gui/corrections/response_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def scatter_plot(series, label):
703703
scatter_plot(a, label="Removed BPM")
704704

705705
# Get the unit of the y axis
706-
j, k, l, m = [int(e) for e in rdt[1:-2]]
706+
j, k, l, m = [int(e) for e in rdt[1:-2]] # noqa: E741
707707
unit_magnet = -(j + k + l + m) # unit is m^(-order)
708708
unit = unit_magnet + 1
709709
unit += (j + k) / 2 + (l + m) / 2

chroma_gui/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,9 @@ def startThread(self, main_function, finish_function, *args):
11201120
Arguments:
11211121
- main_function: method of the class `ExternalProgram` to be started as main function of the thread
11221122
- finish_function: method of the class `MainWindow` to be called when the thread has finished
1123-
- *args: arguments to be passed to the instantiation of the `ExternalProgram` class, those are the
1124-
`main_function` arguments
1123+
- args: arguments to be passed to the instantiation of the `ExternalProgram` class,
1124+
those are the `main_function` arguments
1125+
11251126
"""
11261127
# Check if we've got a thread already running
11271128
try:

chroma_gui/plotting/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Plotting
3-
--------
2+
Plotting Module
3+
---------------
44
55
This module contains functions to plot chromaticity data.
66
"""

chroma_gui/timber/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Timber
3-
------
2+
Timber Module
3+
-------------
44
55
This module contains all the functions to extract data from Timber.
66
"""

doc/bibliography.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Bibliography
22
************
33

4-
This bibliography is inentionally left blank.
4+
This bibliography is intentionally left blank.

0 commit comments

Comments
 (0)