stemdiff 5.2.6__tar.gz → 5.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stemdiff
3
- Version: 5.2.6
3
+ Version: 5.2.7
4
4
  Summary: Convert 4D-STEM data to 2D-powder diffraction pattern.
5
5
  Home-page: https://github.com/mirekslouf/stemdiff/
6
6
  Author: Mirek Slouf
@@ -31,7 +31,7 @@ STEMDIFF :: 4D-STEM dataset to 2D-diffractogram
31
31
  [https://doi.org/10.3390/nano11040962](https://doi.org/10.3390/nano11040962)
32
32
  2. *Materials* 14 (2021) 7550.
33
33
  [https://doi.org/10.3390/ma14247550](https://doi.org/10.3390/ma14247550)
34
- * If you use STEMDIFF package, **please cite** the 2nd publication (or both :-).
34
+ * If you use STEMDIFF package, **please cite** the 2nd publication (or both :-)
35
35
 
36
36
  Principle
37
37
  ---------
@@ -40,7 +40,7 @@ Principle
40
40
 
41
41
  Installation
42
42
  ------------
43
- * Requirement: Python with sci-modules: numpy, matplotlib, scipy, pandas
43
+ * Requirement: Python with sci-modules = numpy, matplotlib, scipy, pandas
44
44
  * `pip install scikit-image` = 3rd party package for advanced image processing
45
45
  * `pip install tqdm` = to show progress meter during long summations
46
46
  * `pip install idiff` = to improve diffractograms (remove noise, background ...)
@@ -49,20 +49,23 @@ Installation
49
49
  Quick start
50
50
  -----------
51
51
 
52
- * See how it works:
53
- - Look at [worked example](https://www.dropbox.com/scl/fi/l5eskdgxo7976ea9x35fp/01_sdiff_au.nb.pdf?rlkey=7yd5tqtcm3zxr1uc0m0aisenl&dl=0)
54
- in Jupyter.
55
- * Try it yourself:
56
- - Download [complete examples with data](https://www.dropbox.com/scl/fo/ccb6hs28er9dc1xufshh4/h?rlkey=omk5bqoe17jmedhj407ng9xr0&dl=0).
57
- - After downloading, unzip and follow the instructions in *readme* file.
52
+ * Look at the
53
+ [worked example](https://www.dropbox.com/scl/fi/l5eskdgxo7976ea9x35fp/01_sdiff_au.nb.pdf?rlkey=7yd5tqtcm3zxr1uc0m0aisenl&dl=0)
54
+ to see STEMDIFF in action.
55
+ * Download
56
+ [complete examples with data](https://www.dropbox.com/scl/fo/ccb6hs28er9dc1xufshh4/h?rlkey=omk5bqoe17jmedhj407ng9xr0&dl=0)
57
+ and try STEMDIFF yourself.
58
58
 
59
59
  Documentation, help and examples
60
60
  --------------------------------
61
61
 
62
- * [PyPI](https://pypi.org/project/stemdiff) repository.
63
- * [GitHub](https://github.com/mirekslouf/stemdiff) repository.
62
+ * [PyPI](https://pypi.org/project/stemdiff) repository -
63
+ the stable version to install.
64
+ * [GitHub](https://github.com/mirekslouf/stemdiff) repository -
65
+ the current version under development.
64
66
  * [GitHub Pages](https://mirekslouf.github.io/stemdiff)
65
- with [documentation](https://mirekslouf.github.io/stemdiff/docs).
67
+ with [help](https://mirekslouf.github.io/stemdiff/docs)
68
+ and [complete package documentation](https://mirekslouf.github.io/stemdiff/docs/pdoc.html/stemdiff.html).
66
69
 
67
70
  ## Versions of STEMDIFF
68
71
 
@@ -89,3 +92,9 @@ Documentation, help and examples
89
92
  - more types of deconvolution (experimental; to be finished in v.6.0)
90
93
  * Version 5.1 = (beta) support for parallel processing
91
94
  * Version 5.2 = (beta) improvement of diff.patterns in sister package idiff
95
+
96
+ Acknowledgement
97
+ ---------------
98
+
99
+ The development was co-funded by TACR, program NCK,
100
+ project [TN02000020](https://www.isibrno.cz/en/centre-advanced-electron-and-photonic-optics).
@@ -10,7 +10,7 @@ STEMDIFF :: 4D-STEM dataset to 2D-diffractogram
10
10
  [https://doi.org/10.3390/nano11040962](https://doi.org/10.3390/nano11040962)
11
11
  2. *Materials* 14 (2021) 7550.
12
12
  [https://doi.org/10.3390/ma14247550](https://doi.org/10.3390/ma14247550)
13
- * If you use STEMDIFF package, **please cite** the 2nd publication (or both :-).
13
+ * If you use STEMDIFF package, **please cite** the 2nd publication (or both :-)
14
14
 
15
15
  Principle
16
16
  ---------
@@ -19,7 +19,7 @@ Principle
19
19
 
20
20
  Installation
21
21
  ------------
22
- * Requirement: Python with sci-modules: numpy, matplotlib, scipy, pandas
22
+ * Requirement: Python with sci-modules = numpy, matplotlib, scipy, pandas
23
23
  * `pip install scikit-image` = 3rd party package for advanced image processing
24
24
  * `pip install tqdm` = to show progress meter during long summations
25
25
  * `pip install idiff` = to improve diffractograms (remove noise, background ...)
@@ -28,20 +28,23 @@ Installation
28
28
  Quick start
29
29
  -----------
30
30
 
31
- * See how it works:
32
- - Look at [worked example](https://www.dropbox.com/scl/fi/l5eskdgxo7976ea9x35fp/01_sdiff_au.nb.pdf?rlkey=7yd5tqtcm3zxr1uc0m0aisenl&dl=0)
33
- in Jupyter.
34
- * Try it yourself:
35
- - Download [complete examples with data](https://www.dropbox.com/scl/fo/ccb6hs28er9dc1xufshh4/h?rlkey=omk5bqoe17jmedhj407ng9xr0&dl=0).
36
- - After downloading, unzip and follow the instructions in *readme* file.
31
+ * Look at the
32
+ [worked example](https://www.dropbox.com/scl/fi/l5eskdgxo7976ea9x35fp/01_sdiff_au.nb.pdf?rlkey=7yd5tqtcm3zxr1uc0m0aisenl&dl=0)
33
+ to see STEMDIFF in action.
34
+ * Download
35
+ [complete examples with data](https://www.dropbox.com/scl/fo/ccb6hs28er9dc1xufshh4/h?rlkey=omk5bqoe17jmedhj407ng9xr0&dl=0)
36
+ and try STEMDIFF yourself.
37
37
 
38
38
  Documentation, help and examples
39
39
  --------------------------------
40
40
 
41
- * [PyPI](https://pypi.org/project/stemdiff) repository.
42
- * [GitHub](https://github.com/mirekslouf/stemdiff) repository.
41
+ * [PyPI](https://pypi.org/project/stemdiff) repository -
42
+ the stable version to install.
43
+ * [GitHub](https://github.com/mirekslouf/stemdiff) repository -
44
+ the current version under development.
43
45
  * [GitHub Pages](https://mirekslouf.github.io/stemdiff)
44
- with [documentation](https://mirekslouf.github.io/stemdiff/docs).
46
+ with [help](https://mirekslouf.github.io/stemdiff/docs)
47
+ and [complete package documentation](https://mirekslouf.github.io/stemdiff/docs/pdoc.html/stemdiff.html).
45
48
 
46
49
  ## Versions of STEMDIFF
47
50
 
@@ -68,3 +71,9 @@ Documentation, help and examples
68
71
  - more types of deconvolution (experimental; to be finished in v.6.0)
69
72
  * Version 5.1 = (beta) support for parallel processing
70
73
  * Version 5.2 = (beta) improvement of diff.patterns in sister package idiff
74
+
75
+ Acknowledgement
76
+ ---------------
77
+
78
+ The development was co-funded by TACR, program NCK,
79
+ project [TN02000020](https://www.isibrno.cz/en/centre-advanced-electron-and-photonic-optics).
@@ -30,7 +30,8 @@ STEMDIFF auxiliary package IDIFF and its modules:
30
30
  - idiff.ncore = noise correction/reduction
31
31
  - idiff.psf = estimate of PSF function
32
32
  '''
33
- __version__ = "5.2.6"
33
+ __version__ = "5.2.7"
34
+
34
35
 
35
36
  # Import modules of stemdiff package
36
37
  # this enables us to use modules as follows:
@@ -43,8 +44,30 @@ import stemdiff.io
43
44
  import stemdiff.sum
44
45
  import stemdiff.summ
45
46
 
47
+
46
48
  # Import supplementary package idiff
47
49
  # this enables us to use the modules as follows:
48
50
  # >>> import stemdiff as sd
49
51
  # >>> sd.idiff.bcorr.rolling_ball(arr)
50
52
  import idiff
53
+
54
+
55
+ # Obligatory acknowledgement -- the development was co-funded by TACR.
56
+ # TACR requires that the acknowledgement is printed when we run the program.
57
+ # Nevertheless, Python packages run within other programs, not directly.
58
+ # The following code ensures that the acknowledgement is printed when:
59
+ # (1) You run this file: __init__.py
60
+ # (2) You run the package from command line: python -m stemdiff
61
+ # Technical notes:
62
+ # To get item (2) above, we define __main__.py (next to __init__.py).
63
+ # The usage of __main__.py is not very common, but still quite standard.
64
+
65
+ def acknowledgement():
66
+ print('STEMDIFF package - convert 4D-STEM data to 2D powder diffractogram.')
67
+ print('------')
68
+ print('The development of the package was co-funded by')
69
+ print('the Technology agency of the Czech Republic,')
70
+ print('program NCK, project TN02000020.')
71
+
72
+ if __name__ == '__main__':
73
+ acknowledgement()
@@ -0,0 +1,9 @@
1
+ # __main__.py = top-level code environment
2
+ # Usage: (1) __main__ in programs (2) __main__.py in packages
3
+ # More information: https://docs.python.org/3/library/__main__.html
4
+ # Here: To print the the acknowledgement when we run: python -m stemdiff
5
+ # (the acknowledgement function is defined in the sister __init__.py file
6
+
7
+ from stemdiff import acknowledgement
8
+
9
+ if __name__ == '__main__': acknowledgement()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stemdiff
3
- Version: 5.2.6
3
+ Version: 5.2.7
4
4
  Summary: Convert 4D-STEM data to 2D-powder diffraction pattern.
5
5
  Home-page: https://github.com/mirekslouf/stemdiff/
6
6
  Author: Mirek Slouf
@@ -31,7 +31,7 @@ STEMDIFF :: 4D-STEM dataset to 2D-diffractogram
31
31
  [https://doi.org/10.3390/nano11040962](https://doi.org/10.3390/nano11040962)
32
32
  2. *Materials* 14 (2021) 7550.
33
33
  [https://doi.org/10.3390/ma14247550](https://doi.org/10.3390/ma14247550)
34
- * If you use STEMDIFF package, **please cite** the 2nd publication (or both :-).
34
+ * If you use STEMDIFF package, **please cite** the 2nd publication (or both :-)
35
35
 
36
36
  Principle
37
37
  ---------
@@ -40,7 +40,7 @@ Principle
40
40
 
41
41
  Installation
42
42
  ------------
43
- * Requirement: Python with sci-modules: numpy, matplotlib, scipy, pandas
43
+ * Requirement: Python with sci-modules = numpy, matplotlib, scipy, pandas
44
44
  * `pip install scikit-image` = 3rd party package for advanced image processing
45
45
  * `pip install tqdm` = to show progress meter during long summations
46
46
  * `pip install idiff` = to improve diffractograms (remove noise, background ...)
@@ -49,20 +49,23 @@ Installation
49
49
  Quick start
50
50
  -----------
51
51
 
52
- * See how it works:
53
- - Look at [worked example](https://www.dropbox.com/scl/fi/l5eskdgxo7976ea9x35fp/01_sdiff_au.nb.pdf?rlkey=7yd5tqtcm3zxr1uc0m0aisenl&dl=0)
54
- in Jupyter.
55
- * Try it yourself:
56
- - Download [complete examples with data](https://www.dropbox.com/scl/fo/ccb6hs28er9dc1xufshh4/h?rlkey=omk5bqoe17jmedhj407ng9xr0&dl=0).
57
- - After downloading, unzip and follow the instructions in *readme* file.
52
+ * Look at the
53
+ [worked example](https://www.dropbox.com/scl/fi/l5eskdgxo7976ea9x35fp/01_sdiff_au.nb.pdf?rlkey=7yd5tqtcm3zxr1uc0m0aisenl&dl=0)
54
+ to see STEMDIFF in action.
55
+ * Download
56
+ [complete examples with data](https://www.dropbox.com/scl/fo/ccb6hs28er9dc1xufshh4/h?rlkey=omk5bqoe17jmedhj407ng9xr0&dl=0)
57
+ and try STEMDIFF yourself.
58
58
 
59
59
  Documentation, help and examples
60
60
  --------------------------------
61
61
 
62
- * [PyPI](https://pypi.org/project/stemdiff) repository.
63
- * [GitHub](https://github.com/mirekslouf/stemdiff) repository.
62
+ * [PyPI](https://pypi.org/project/stemdiff) repository -
63
+ the stable version to install.
64
+ * [GitHub](https://github.com/mirekslouf/stemdiff) repository -
65
+ the current version under development.
64
66
  * [GitHub Pages](https://mirekslouf.github.io/stemdiff)
65
- with [documentation](https://mirekslouf.github.io/stemdiff/docs).
67
+ with [help](https://mirekslouf.github.io/stemdiff/docs)
68
+ and [complete package documentation](https://mirekslouf.github.io/stemdiff/docs/pdoc.html/stemdiff.html).
66
69
 
67
70
  ## Versions of STEMDIFF
68
71
 
@@ -89,3 +92,9 @@ Documentation, help and examples
89
92
  - more types of deconvolution (experimental; to be finished in v.6.0)
90
93
  * Version 5.1 = (beta) support for parallel processing
91
94
  * Version 5.2 = (beta) improvement of diff.patterns in sister package idiff
95
+
96
+ Acknowledgement
97
+ ---------------
98
+
99
+ The development was co-funded by TACR, program NCK,
100
+ project [TN02000020](https://www.isibrno.cz/en/centre-advanced-electron-and-photonic-optics).
@@ -4,7 +4,15 @@ MANIFEST.in
4
4
  README.md
5
5
  pyproject.toml
6
6
  setup.py
7
+ src/STEMDIFF/__init__.py
8
+ src/STEMDIFF/dbase.py
9
+ src/STEMDIFF/detectors.py
10
+ src/STEMDIFF/gvars.py
11
+ src/STEMDIFF/io.py
12
+ src/STEMDIFF/sum.py
13
+ src/STEMDIFF/summ.py
7
14
  src/stemdiff/__init__.py
15
+ src/stemdiff/__main__.py
8
16
  src/stemdiff/dbase.py
9
17
  src/stemdiff/detectors.py
10
18
  src/stemdiff/gvars.py
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes