empix 0.0.2__tar.gz → 0.0.4__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.
- {empix-0.0.2 → empix-0.0.4}/PKG-INFO +4 -3
- {empix-0.0.2 → empix-0.0.4}/empix/__init__.py +18 -4
- {empix-0.0.2 → empix-0.0.4}/empix/version.py +9 -4
- {empix-0.0.2 → empix-0.0.4}/empix.egg-info/PKG-INFO +4 -3
- {empix-0.0.2 → empix-0.0.4}/empix.egg-info/requires.txt +1 -1
- {empix-0.0.2 → empix-0.0.4}/pyproject.toml +1 -1
- {empix-0.0.2 → empix-0.0.4}/.coveragerc +0 -0
- {empix-0.0.2 → empix-0.0.4}/.github/workflows/measure_code_coverage.yml +0 -0
- {empix-0.0.2 → empix-0.0.4}/.github/workflows/publish_documentation_website.yml +0 -0
- {empix-0.0.2 → empix-0.0.4}/.github/workflows/publish_release_to_pypi.yml +0 -0
- {empix-0.0.2 → empix-0.0.4}/.github/workflows/test_library.yml +0 -0
- {empix-0.0.2 → empix-0.0.4}/.gitignore +0 -0
- {empix-0.0.2 → empix-0.0.4}/LICENSE +0 -0
- {empix-0.0.2 → empix-0.0.4}/README.md +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/INSTALL.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/Makefile +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/_static/readthedocs_custom.css +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/_templates/custom_class_template.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/_templates/custom_module_template.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/_templates/versions.html +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/api.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/build_docs.py +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/conf.py +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/examples.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/index.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/license.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/make.bat +0 -0
- {empix-0.0.2 → empix-0.0.4}/docs/private_members_to_publish_to_docs.rst +0 -0
- {empix-0.0.2 → empix-0.0.4}/empix.egg-info/SOURCES.txt +0 -0
- {empix-0.0.2 → empix-0.0.4}/empix.egg-info/dependency_links.txt +0 -0
- {empix-0.0.2 → empix-0.0.4}/empix.egg-info/top_level.txt +0 -0
- {empix-0.0.2 → empix-0.0.4}/examples/basic_usage.ipynb +0 -0
- {empix-0.0.2 → empix-0.0.4}/setup.cfg +0 -0
- {empix-0.0.2 → empix-0.0.4}/setup.py +0 -0
- {empix-0.0.2 → empix-0.0.4}/tests/test_root.py +0 -0
- {empix-0.0.2 → empix-0.0.4}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: empix
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Contains tools for analyzing electron microscopy data that are not available in ``hyperspy``.
|
|
5
5
|
Author-email: Matthew Fitzpatrick <matthew.rc.fitzpatrick@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://mrfitzpa.github.io/empix
|
|
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: czekitout
|
|
25
25
|
Requires-Dist: fancytypes>=1.0.0
|
|
26
|
-
Requires-Dist: hyperspy
|
|
26
|
+
Requires-Dist: hyperspy
|
|
27
27
|
Requires-Dist: pyFAI
|
|
28
28
|
Provides-Extra: tests
|
|
29
29
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
@@ -38,6 +38,7 @@ Requires-Dist: numpydoc; extra == "docs"
|
|
|
38
38
|
Requires-Dist: docutils; extra == "docs"
|
|
39
39
|
Provides-Extra: all
|
|
40
40
|
Requires-Dist: empix[docs,examples,tests]; extra == "all"
|
|
41
|
+
Dynamic: license-file
|
|
41
42
|
|
|
42
43
|
# empix
|
|
43
44
|
|
|
@@ -26,6 +26,10 @@ microscopy data that are not available in `hyperspy
|
|
|
26
26
|
# For performing deep copies.
|
|
27
27
|
import copy
|
|
28
28
|
|
|
29
|
+
# For checking whether certain submodules exists and for importing said
|
|
30
|
+
# submodules should they exist.
|
|
31
|
+
import importlib
|
|
32
|
+
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
# For general array handling.
|
|
@@ -47,8 +51,10 @@ import hyperspy.signals
|
|
|
47
51
|
import hyperspy.axes
|
|
48
52
|
|
|
49
53
|
# For azimuthally integrating 2D hyperspy signals.
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
detectors = importlib.import_module("pyFAI.detectors")
|
|
55
|
+
integrators = (importlib.import_module("pyFAI.integrator.azimuthal")
|
|
56
|
+
if importlib.util.find_spec("pyFAI.integrator")
|
|
57
|
+
else importlib.import_module("pyFAI.azimuthalIntegrator"))
|
|
52
58
|
|
|
53
59
|
# For downsampling hyperspy signals.
|
|
54
60
|
import skimage.measure
|
|
@@ -764,7 +770,11 @@ def _construct_azimuthal_integrator(signal, center):
|
|
|
764
770
|
v_pixel_size = abs(v_scale)
|
|
765
771
|
L = 10000 * max(v_pixel_size, h_pixel_size)
|
|
766
772
|
|
|
767
|
-
|
|
773
|
+
# ``integrators`` is an alias to a pyFAI submodule that was imported near
|
|
774
|
+
# the top of the current file using the ``importlib.import_module``
|
|
775
|
+
# function.
|
|
776
|
+
AzimuthalIntegrator = integrators.AzimuthalIntegrator
|
|
777
|
+
|
|
768
778
|
kwargs = {"dist": L,
|
|
769
779
|
"poni1": poni_1,
|
|
770
780
|
"poni2": poni_2,
|
|
@@ -779,8 +789,12 @@ def _construct_pyfai_detector(signal):
|
|
|
779
789
|
h_pixel_size = abs(signal.axes_manager[-2].scale)
|
|
780
790
|
v_pixel_size = abs(signal.axes_manager[-1].scale)
|
|
781
791
|
|
|
792
|
+
# ``detectors`` is an alias to a pyFAI submodule that was imported near the
|
|
793
|
+
# top of the current file using the ``importlib.import_module`` function.
|
|
794
|
+
Detector = detectors.Detector
|
|
795
|
+
|
|
782
796
|
kwargs = {"pixel1": v_pixel_size, "pixel2": h_pixel_size}
|
|
783
|
-
detector =
|
|
797
|
+
detector = Detector(**kwargs)
|
|
784
798
|
|
|
785
799
|
return detector
|
|
786
800
|
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
# file generated by
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
|
5
|
+
|
|
3
6
|
TYPE_CHECKING = False
|
|
4
7
|
if TYPE_CHECKING:
|
|
5
|
-
from typing import Tuple
|
|
8
|
+
from typing import Tuple
|
|
9
|
+
from typing import Union
|
|
10
|
+
|
|
6
11
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
12
|
else:
|
|
8
13
|
VERSION_TUPLE = object
|
|
@@ -12,5 +17,5 @@ __version__: str
|
|
|
12
17
|
__version_tuple__: VERSION_TUPLE
|
|
13
18
|
version_tuple: VERSION_TUPLE
|
|
14
19
|
|
|
15
|
-
__version__ = version = '0.0.
|
|
16
|
-
__version_tuple__ = version_tuple = (0, 0,
|
|
20
|
+
__version__ = version = '0.0.4'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 0, 4)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: empix
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Contains tools for analyzing electron microscopy data that are not available in ``hyperspy``.
|
|
5
5
|
Author-email: Matthew Fitzpatrick <matthew.rc.fitzpatrick@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://mrfitzpa.github.io/empix
|
|
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: czekitout
|
|
25
25
|
Requires-Dist: fancytypes>=1.0.0
|
|
26
|
-
Requires-Dist: hyperspy
|
|
26
|
+
Requires-Dist: hyperspy
|
|
27
27
|
Requires-Dist: pyFAI
|
|
28
28
|
Provides-Extra: tests
|
|
29
29
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
@@ -38,6 +38,7 @@ Requires-Dist: numpydoc; extra == "docs"
|
|
|
38
38
|
Requires-Dist: docutils; extra == "docs"
|
|
39
39
|
Provides-Extra: all
|
|
40
40
|
Requires-Dist: empix[docs,examples,tests]; extra == "all"
|
|
41
|
+
Dynamic: license-file
|
|
41
42
|
|
|
42
43
|
# empix
|
|
43
44
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|