stemdiff 5.2.6__py3-none-any.whl → 5.2.7__py3-none-any.whl
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.
- {stemdiff → STEMDIFF}/__init__.py +24 -1
- STEMDIFF/__main__.py +9 -0
- {stemdiff-5.2.6.dist-info → stemdiff-5.2.7.dist-info}/METADATA +21 -12
- stemdiff-5.2.7.dist-info/RECORD +13 -0
- {stemdiff-5.2.6.dist-info → stemdiff-5.2.7.dist-info}/WHEEL +1 -1
- stemdiff-5.2.7.dist-info/top_level.txt +1 -0
- stemdiff-5.2.6.dist-info/RECORD +0 -12
- stemdiff-5.2.6.dist-info/top_level.txt +0 -1
- {stemdiff → STEMDIFF}/dbase.py +0 -0
- {stemdiff → STEMDIFF}/detectors.py +0 -0
- {stemdiff → STEMDIFF}/gvars.py +0 -0
- {stemdiff → STEMDIFF}/io.py +0 -0
- {stemdiff → STEMDIFF}/sum.py +0 -0
- {stemdiff → STEMDIFF}/summ.py +0 -0
- {stemdiff-5.2.6.dist-info → stemdiff-5.2.7.dist-info}/LICENCE +0 -0
|
@@ -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.
|
|
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()
|
STEMDIFF/__main__.py
ADDED
|
@@ -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.
|
|
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
|
|
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
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
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 [
|
|
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).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
STEMDIFF/__init__.py,sha256=mHJVVAlVjYi2R4Mr8ZHL9794BWgw4xhYILsHpi5nYlE,2928
|
|
2
|
+
STEMDIFF/__main__.py,sha256=ECOOjxFFnVPb5gHkI05h8KrVpk_vYmAI18nfrL0ZF9M,413
|
|
3
|
+
STEMDIFF/dbase.py,sha256=Z-41mzzX2XqWJwPCPNMIboq7m57NtJhP4ViTfPssvpk,5985
|
|
4
|
+
STEMDIFF/detectors.py,sha256=YHiOZjEaeOtYstlX0ATFPWqfVMVIiJCfFthXtVuVZaw,11850
|
|
5
|
+
STEMDIFF/gvars.py,sha256=BBMM70kv-l3_mSQb_GX1abNR-EYewvUgZYkB66RQG0M,4453
|
|
6
|
+
STEMDIFF/io.py,sha256=xHmjy5KYWz1P0cnYK8nVesf6AoDHQIWc7aeXFUUJIHM,48011
|
|
7
|
+
STEMDIFF/sum.py,sha256=ZEHgLbdaQkooB7ZWgTxxmLJZpM5yCxCaOlK70A1rNSU,14607
|
|
8
|
+
STEMDIFF/summ.py,sha256=LBhgfmPEvWMmCruZE2K7-XYSjA7Mh33WrziP4bTGcU4,8030
|
|
9
|
+
stemdiff-5.2.7.dist-info/LICENCE,sha256=A0HugtkWkgCwRhYrsSqENRlIFre2Vu14xQajDnsYlqU,1340
|
|
10
|
+
stemdiff-5.2.7.dist-info/METADATA,sha256=imBKXcZvJ01VsKB-kMtxDWHGJPwCKyD8p4ToxD5DDY4,4493
|
|
11
|
+
stemdiff-5.2.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
12
|
+
stemdiff-5.2.7.dist-info/top_level.txt,sha256=TEpwqMUcpSUvwCDrcH9fkjpU8fYGdR1ti2H2UsNiUIk,9
|
|
13
|
+
stemdiff-5.2.7.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
STEMDIFF
|
stemdiff-5.2.6.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
stemdiff/__init__.py,sha256=K7AYDcJfkHbamsYMlOxrSClUDdTIu6ZGuQ8_RdHt2bI,1998
|
|
2
|
-
stemdiff/dbase.py,sha256=Z-41mzzX2XqWJwPCPNMIboq7m57NtJhP4ViTfPssvpk,5985
|
|
3
|
-
stemdiff/detectors.py,sha256=YHiOZjEaeOtYstlX0ATFPWqfVMVIiJCfFthXtVuVZaw,11850
|
|
4
|
-
stemdiff/gvars.py,sha256=BBMM70kv-l3_mSQb_GX1abNR-EYewvUgZYkB66RQG0M,4453
|
|
5
|
-
stemdiff/io.py,sha256=xHmjy5KYWz1P0cnYK8nVesf6AoDHQIWc7aeXFUUJIHM,48011
|
|
6
|
-
stemdiff/sum.py,sha256=ZEHgLbdaQkooB7ZWgTxxmLJZpM5yCxCaOlK70A1rNSU,14607
|
|
7
|
-
stemdiff/summ.py,sha256=LBhgfmPEvWMmCruZE2K7-XYSjA7Mh33WrziP4bTGcU4,8030
|
|
8
|
-
stemdiff-5.2.6.dist-info/LICENCE,sha256=A0HugtkWkgCwRhYrsSqENRlIFre2Vu14xQajDnsYlqU,1340
|
|
9
|
-
stemdiff-5.2.6.dist-info/METADATA,sha256=V8X-PpDZnkPoXO6FkUgPybTrFu3Id3v4UZsrjr2EXhM,4197
|
|
10
|
-
stemdiff-5.2.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
11
|
-
stemdiff-5.2.6.dist-info/top_level.txt,sha256=EQn-XSqpLeMnvowHwcgup7Qwlk6c0zeBT3abWmDapRQ,9
|
|
12
|
-
stemdiff-5.2.6.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
stemdiff
|
{stemdiff → STEMDIFF}/dbase.py
RENAMED
|
File without changes
|
|
File without changes
|
{stemdiff → STEMDIFF}/gvars.py
RENAMED
|
File without changes
|
{stemdiff → STEMDIFF}/io.py
RENAMED
|
File without changes
|
{stemdiff → STEMDIFF}/sum.py
RENAMED
|
File without changes
|
{stemdiff → STEMDIFF}/summ.py
RENAMED
|
File without changes
|
|
File without changes
|