Skip to content

Commit 3f2364f

Browse files
authored
fixing doc (#34)
1 parent 316c1f3 commit 3f2364f

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def about_package(init_posixpath: pathlib.Path) -> dict:
9898
#
9999
# This is also used if you do content translation via gettext catalogs.
100100
# Usually you set "language" from the command line for these cases.
101-
language = None
101+
language = "en"
102102

103103
# List of patterns, relative to source directory, that match files and
104104
# directories to ignore when looking for source files.

doc/helper/constants.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.. automodule:: optics_functions.constants
22
:members:
3+
:noindex:
34

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Package Reference
1515

1616
modules/*
1717

18+
1819
.. toctree::
1920
:caption: Helper
2021
:maxdepth: 1

doc/modules/coupling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.. automodule:: optics_functions.coupling
22
:members:
3-
3+
:noindex:
44

doc/modules/rdt.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. automodule:: optics_functions.rdt
22
:members:
3+
:noindex:
34

45

doc/modules/utils.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.. automodule:: optics_functions.utils
22
:members:
3-
3+
:noindex:
44

optics_functions/coupling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def coupling_via_cmatrix(df: DataFrame, complex_columns: bool = True,
135135

136136
def rmatrix_from_coupling(df: DataFrame, complex_columns: bool = True) -> DataFrame:
137137
"""Calculates the R-matrix from a DataFrame containing the coupling columns
138-
as well as alpha and beta columns. This is the inverse of
138+
as well as alpha and beta columns. This is the inverse of
139139
:func:`optics_functions.coupling.coupling_via_cmatrix`.
140140
See [CalagaBetatronCoupling2005]_ .
141141
@@ -349,7 +349,7 @@ def _get_weights_from_lengths(df: TfsDataFrame) -> Tuple[float, np.array]:
349349

350350

351351
def check_resonance_relation(df: DataFrame, to_nan: bool = False) -> DataFrame:
352-
"""Checks that |F1001| >= |F1010|.
352+
"""Checks that \|F1001| >= \|F1010|.
353353
If desired, sets the invalid points to NaN. This is only used for checking
354354
in the :func:`~optics_functions.coupling.closest_tune_approach` function,
355355
but can be invoked by the user with ``to_nan = True`` and the resulting
@@ -358,7 +358,7 @@ def check_resonance_relation(df: DataFrame, to_nan: bool = False) -> DataFrame:
358358
359359
Args:
360360
df (DataFrame): Dataframe containing the coupling columns.
361-
to_nan (bool): If true, sets values where |F1001| <= |F1010| to ``NaN``.
361+
to_nan (bool): If true, sets values where \|F1001| <= \|F1010| to ``NaN``.
362362
363363
Returns:
364364
A copy of the input data frame, with or without NaNs.

0 commit comments

Comments
 (0)