Skip to content

Commit dc7acee

Browse files
committed
Update documentation
Correct sphinx warning
1 parent 317f706 commit dc7acee

File tree

15 files changed

+64
-121
lines changed

15 files changed

+64
-121
lines changed

doc/source/api/ext/index.rst

-16
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ pyFAI.ext.relabel module
7373
:undoc-members:
7474
:show-inheritance:
7575

76-
pyFAI.ext.setup module
77-
----------------------
78-
79-
.. automodule:: pyFAI.ext.setup
80-
:members:
81-
:undoc-members:
82-
:show-inheritance:
83-
8476
pyFAI.ext.sparse_builder module
8577
-------------------------------
8678

@@ -129,14 +121,6 @@ pyFAI.ext.splitPixel module
129121
:undoc-members:
130122
:show-inheritance:
131123

132-
pyFAI.ext.splitPixelFull module
133-
-------------------------------
134-
135-
.. automodule:: pyFAI.ext.splitPixelFull
136-
:members:
137-
:undoc-members:
138-
:show-inheritance:
139-
140124
pyFAI.ext.splitPixelFullCSR module
141125
----------------------------------
142126

doc/source/api/gui/utils.rst

-8
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ pyFAI.gui.utils.projecturl module
4949
:undoc-members:
5050
:show-inheritance:
5151

52-
pyFAI.gui.utils.setup module
53-
----------------------------
54-
55-
.. automodule:: pyFAI.gui.utils.setup
56-
:members:
57-
:undoc-members:
58-
:show-inheritance:
59-
6052
pyFAI.gui.utils.timeutils module
6153
--------------------------------
6254

doc/source/api/gui/widgets.rst

-8
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ pyFAI.gui.widgets.DetectorSelector module
7373
:undoc-members:
7474
:show-inheritance:
7575

76-
pyFAI.gui.widgets.ElidedLabel module
77-
------------------------------------
78-
79-
.. automodule:: pyFAI.gui.widgets.ElidedLabel
80-
:members:
81-
:undoc-members:
82-
:show-inheritance:
83-
8476
pyFAI.gui.widgets.FileEdit module
8577
---------------------------------
8678

doc/source/api/modules.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ expect after having launched *Jupyter notebook* (or ipython) and typed:
1010
1111
The most important class is AzimuthalIntegrator which is an object containing
1212
both the geometry (it inherits from Geometry, another class)
13-
and exposes important methods (functions) like `integrate1d` and `integrate2d.
13+
and exposes important methods (functions) like `integrate1d` and `integrate2d`.
1414

1515
.. toctree::
1616
:maxdepth: 2

doc/source/api/opencl/index.rst

-8
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ pyFAI.opencl.preproc module
4949
:undoc-members:
5050
:show-inheritance:
5151

52-
pyFAI.opencl.setup module
53-
-------------------------
54-
55-
.. automodule:: pyFAI.opencl.setup
56-
:members:
57-
:undoc-members:
58-
:show-inheritance:
59-
6052
pyFAI.opencl.sort module
6153
------------------------
6254

doc/source/api/resources/index.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
pyFAI.resources package
22
=======================
33

4-
pyFAI.resources.setup module
4+
pyFAI.resources.__init__ module
55
----------------------------
66

7-
.. automodule:: pyFAI.resources.setup
7+
.. automodule:: pyFAI.resources.__init__
88
:members:
99
:undoc-members:
1010
:show-inheritance:
1111

12-
1312
Module contents
1413
---------------
1514

doc/source/api/utils/index.rst

-8
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ pyFAI.utils.orderedset module
5757
:undoc-members:
5858
:show-inheritance:
5959

60-
pyFAI.utils.setup module
61-
------------------------
62-
63-
.. automodule:: pyFAI.utils.setup
64-
:members:
65-
:undoc-members:
66-
:show-inheritance:
67-
6860
pyFAI.utils.shell module
6961
------------------------
7062

doc/source/man/diff_map.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ Bugs:
122122
.....
123123

124124
Bugs: Many, see hereafter: 1)If the number of files is too large, use
125-
double quotes "*.edf" 2)There is a known bug on Debian7 where importing
125+
double quotes "\*.edf" 2)There is a known bug on Debian7 where importing
126126
a large number of file can take much longer than the integration itself:
127127
consider passing files in the command line

doc/source/usage/cookbook/calibration_with_jupyter.ipynb

+35-47
Large diffs are not rendered by default.

pyFAI/azimuthalIntegrator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
__contact__ = "Jerome.Kieffer@ESRF.eu"
3131
__license__ = "MIT"
3232
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
33-
__date__ = "04/10/2022"
33+
__date__ = "05/01/2023"
3434
__status__ = "stable"
3535
__docformat__ = 'restructuredtext'
3636

@@ -3074,7 +3074,7 @@ def sigma_clip_ng(self, data,
30743074
30753075
Keep only pixels with intensty:
30763076
3077-
|I - <I>| < thres * std(I)
3077+
\|I - <I>\| < thres * std(I)
30783078
30793079
This enforces a gaussian distibution and is very good at extracting
30803080
background or amorphous isotropic scattering out of Bragg peaks.

pyFAI/detectors/_non_flat.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
__contact__ = "Jerome.Kieffer@ESRF.eu"
3737
__license__ = "MIT"
3838
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
39-
__date__ = "25/06/2020"
39+
__date__ = "05/01/2023"
4040
__status__ = "production"
4141

4242

@@ -116,10 +116,10 @@ def get_pixel_corners(self, correct_binning=False, use_cython=True):
116116
:param correct_binning: If True, check that the produced array have the right shape regarding binning
117117
:param use_cython: set to False for testing
118118
:return: 4D array containing:
119-
pixel index (slow dimension)
120-
pixel index (fast dimension)
121-
corner index (A, B, C or D), triangles or hexagons can be handled the same way
122-
vertex position (z,y,x)
119+
pixel index (slow dimension)
120+
pixel index (fast dimension)
121+
corner index (A, B, C or D), triangles or hexagons can be handled the same way
122+
vertex position (z,y,x)
123123
"""
124124
if self._pixel_corners is None:
125125
with self._sem:

pyFAI/engines/CSR_engine.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
__contact__ = "Jerome.Kieffer@ESRF.eu"
2727
__license__ = "MIT"
2828
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
29-
__date__ = "13/07/2022"
29+
__date__ = "05/01/2023"
3030
__status__ = "development"
3131

3232
import logging
@@ -175,6 +175,7 @@ def __init__(self,
175175
:param unit: the kind of radial units
176176
:param bin_center: position of the bin center
177177
:param mask_checksum: just a place-holder to track which mask was used
178+
178179
Nota: bins value is deduced from the dimentionality of bin_centers
179180
"""
180181
self.bin_centers = bin_centers
@@ -291,9 +292,10 @@ def sigma_clip(self, data, dark=None, dummy=None, delta_dummy=None,
291292
:param safe: Unused in this implementation
292293
:param error_model: Enum or str, "azimuthal" or "poisson"
293294
:param normalization_factor: divide raw signal by this value
294-
:param cutoff: discard all points with |value - avg| > cutoff * sigma. 3-4 is quite common
295+
:param cutoff: discard all points with \|value - avg\| > cutoff * sigma. 3-4 is quite common
295296
:param cycle: perform at maximum this number of cycles. 5 is common.
296297
:return: namedtuple with "position intensity error signal variance normalization count"
298+
297299
"""
298300
shape = data.shape
299301
error_model = ErrorModel.parse(error_model)

pyFAI/gui/peak_picker.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
__contact__ = "Jerome.Kieffer@ESRF.eu"
3434
__license__ = "MIT"
3535
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
36-
__date__ = "28/03/2022"
36+
__date__ = "05/01/2023"
3737
__status__ = "production"
3838

3939
import os
@@ -323,7 +323,7 @@ def _common_creation(self, points, gpt=None, ring=None):
323323
return gpt
324324

325325
def onclick_new_grp(self, yx, ring):
326-
" * new_grp Right-click (click+n): try an auto find for a ring"
326+
"new_grp Right-click (click+n): try an auto find for a ring"
327327
# ydata is a float, and matplotlib display pixels centered.
328328
# we use floor (int cast) instead of round to avoid use of
329329
# banker's rounding
@@ -337,7 +337,7 @@ def onclick_new_grp(self, yx, ring):
337337
logger.warning("No peak found !!!")
338338

339339
def onclick_single_point(self, yx, ring):
340-
" * Right-click + Ctrl (click+b): create new group with one single point"
340+
"Right-click + Ctrl (click+b): create new group with one single point"
341341
newpeak = self.massif.nearest_peak(yx)
342342
if newpeak:
343343
gpt = self._common_creation([newpeak], ring=ring)
@@ -346,7 +346,7 @@ def onclick_single_point(self, yx, ring):
346346
logger.warning("No peak found !!!")
347347

348348
def onclick_append_more_points(self, yx, ring):
349-
" * Right-click + m (click+m): find more points for current group"
349+
"Right-click + m (click+m): find more points for current group"
350350
gpt = self.points.get(ring)
351351
if gpt:
352352
self.widget.remove_grp(gpt.label, update=False)
@@ -364,7 +364,8 @@ def onclick_append_more_points(self, yx, ring):
364364
self.onclick_new_grp(yx, ring)
365365

366366
def onclick_append_1_point(self, yx, ring=None):
367-
""" * Right-click + Shift (click+v): add one point to current group
367+
"""Right-click + Shift (click+v): add one point to current group
368+
368369
:param xy: 2tuple of coordinates
369370
"""
370371
gpt = self.points.get(ring)
@@ -382,7 +383,7 @@ def onclick_append_1_point(self, yx, ring=None):
382383
self.onclick_new_grp(yx, ring)
383384

384385
def onclick_erase_grp(self, yx, ring):
385-
" * Center-click or (click+d): erase current group"
386+
"Center-click or (click+d): erase current group"
386387
gpt = self.points.pop(ring)
387388
if gpt:
388389
self.widget.remove_grp(gpt.label, update=True)
@@ -394,7 +395,7 @@ def onclick_erase_grp(self, yx, ring):
394395
logger.warning("No group of points for ring %s", ring)
395396

396397
def onclick_erase_1_point(self, yx, ring):
397-
" * Center-click + 1 or (click+1): erase closest point from current group"
398+
"Center-click + 1 or (click+1): erase closest point from current group"
398399
gpt = self.points.get(ring)
399400
if not gpt:
400401
self.widget.remove_grp(gpt.label, update=True)

pyFAI/io/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
__contact__ = "Jerome.Kieffer@ESRF.eu"
4343
__license__ = "MIT"
4444
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
45-
__date__ = "04/10/2022"
45+
__date__ = "05/01/2023"
4646
__status__ = "production"
4747
__docformat__ = 'restructuredtext'
4848

@@ -855,13 +855,14 @@ class FabioWriter(Writer):
855855
"""
856856

857857
def __init__(self, filename=None, extension=None, directory="", prefix=None, index_format="_%04d", start_index=0, fabio_class=None):
858-
"""
858+
"""Constructor of the class
859+
859860
:param filename:
860861
:param extension:
861862
:param prefix: basename of the file
862863
:param index_format: "_%04s" gives "_0001" for example
863864
:param start_index: often 0 or 1
864-
:param
865+
:param fabio_class: type of file to write
865866
"""
866867
Writer.__init__(self, filename, extension)
867868
self.header = {}

pyFAI/opencl/azim_csr.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
__authors__ = ["Jérôme Kieffer", "Giannis Ashiotis"]
3030
__license__ = "MIT"
31-
__date__ = "17/11/2022"
31+
__date__ = "05/01/2023"
3232
__copyright__ = "2014-2021, ESRF, Grenoble"
3333
__contact__ = "jerome.kieffer@esrf.fr"
3434

@@ -861,7 +861,7 @@ def sigma_clip(self, data, dark=None, dummy=None, delta_dummy=None,
861861
:param preprocess_only: return the dark subtracted; flat field & solidangle & polarization corrected image, else
862862
:param error_model: enum ErrorModel
863863
:param normalization_factor: divide raw signal by this value
864-
:param cutoff: discard all points with |value - avg| > cutoff * sigma. 3-4 is quite common
864+
:param cutoff: discard all points with ``|value - avg\| > cutoff * sigma``. 3-4 is quite common
865865
:param cycle: perform at maximum this number of cycles. 5 is common.
866866
:param out_avgint: destination array or pyopencl array for sum of all data
867867
:param out_sem: destination array or pyopencl array for uncertainty on mean value

0 commit comments

Comments
 (0)