Skip to content

Commit 3a7aded

Browse files
authored
Merge pull request #2764 from kif/spotty
tutorial on spotty data
2 parents 65b5955 + 2d857ba commit 3a7aded

File tree

3 files changed

+535
-1
lines changed

3 files changed

+535
-1
lines changed

doc/source/usage/tutorial/Spotty.ipynb

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.

doc/source/usage/tutorial/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ a good Python fluency and to a certain extent, of the pyFAI library.
3434
Performances-2D
3535
symmetrize
3636
multi-geometry
37+
Spotty
3738
Goniometer/index
3839
Inpainting/Inpainting
3940
ThickDetector/index

src/pyFAI/containers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,13 @@ def calc_spottiness(self, weighted:bool=False) -> float:
715715
Inspired by doi:10.1107/S1600576713029713
716716
Requires the azimuthal error propagation.
717717
718-
:param weighted: Weight the spottiness by the intensity of each ring.
718+
As a rule of thumb:
719+
- S < 0.05: Smooth powder pattern
720+
– 0.05 < S < 0.15: Mild spottiness / texture
721+
– S > 0.15 : Strongly spotty, likely with large grain size
722+
723+
:param weighted: Weight the spottiness by the intensity of each ring,
724+
probably more correct but also larger values
719725
:return: a value that increases with the spottiness
720726
"""
721727
if self.error_model != ErrorModel.AZIMUTHAL:

0 commit comments

Comments
 (0)