pyemaps 2.7.0__tar.gz → 2.9.0__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.
- {pyemaps-2.7.0 → pyemaps-2.9.0}/MANIFEST.in +1 -0
- {pyemaps-2.7.0/pyemaps.egg-info → pyemaps-2.9.0}/PKG-INFO +7 -2
- {pyemaps-2.7.0 → pyemaps-2.9.0}/README.md +5 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/__init__.py +5 -1
- pyemaps-2.9.0/__version__.py +1 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/dpgen_dec.py +8 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/errors.py +14 -0
- pyemaps-2.9.0/notebooks/adf.ipynb +1500 -0
- pyemaps-2.9.0/notebooks/al_cu_phasemap.ipynb +725 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/al_ediom.ipynb +38 -38
- pyemaps-2.9.0/notebooks/al_orientmap.ipynb +930 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/powder.ipynb +33 -33
- pyemaps-2.9.0/notebooks/probe.ipynb +1058 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_bloch.ipynb +54 -54
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_constructor.ipynb +34 -34
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_csf.ipynb +49 -49
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_dif.ipynb +66 -66
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_lacbed.ipynb +46 -46
- pyemaps-2.9.0/notebooks/si_multislice.ipynb +648 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_scm.ipynb +53 -53
- {pyemaps-2.7.0 → pyemaps-2.9.0}/notebooks/si_stereo.ipynb +34 -34
- pyemaps-2.9.0/phasemap.py +223 -0
- pyemaps-2.9.0/probe.py +1442 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0/pyemaps.egg-info}/PKG-INFO +7 -2
- {pyemaps-2.7.0 → pyemaps-2.9.0}/pyemaps.egg-info/SOURCES.txt +17 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/pyemaps.egg-info/requires.txt +1 -1
- pyemaps-2.9.0/samples/Al_COD_4004108.cif +262 -0
- pyemaps-2.9.0/samples/Cu_COD_7101269.cif +267 -0
- pyemaps-2.9.0/samples/Si_COD_2102763.cif +317 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/adf.py +12 -4
- pyemaps-2.9.0/samples/al_cu_phasemap.py +180 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/al_orientmap.py +12 -5
- pyemaps-2.9.0/samples/crystal_imaging.py +106 -0
- pyemaps-2.9.0/samples/crystal_thickness.py +88 -0
- pyemaps-2.9.0/samples/ctf.py +100 -0
- pyemaps-2.9.0/samples/hrem.py +85 -0
- pyemaps-2.9.0/samples/ronchigram.py +83 -0
- pyemaps-2.9.0/samples/stem_probe.py +130 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/setup.py +6 -2
- {pyemaps-2.7.0 → pyemaps-2.9.0}/stackimg.py +518 -7
- pyemaps-2.7.0/__version__.py +0 -1
- pyemaps-2.7.0/notebooks/adf.ipynb +0 -756
- pyemaps-2.7.0/notebooks/al_orientmap.ipynb +0 -922
- {pyemaps-2.7.0 → pyemaps-2.9.0}/COPYING +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/__config__.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/__main__.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Aluminium.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/AluminiumOxide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Aluminium_FCC.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/BariumTitanate_180k.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/BariumTitanate_270k.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/BariumTitanate_Tetra.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/BiMnO3.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Boron_Tetra.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/CadmiumSelenide_Hex.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/CadmiumSulfide_Cubic.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/CadmiumSulfide_Hex.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Chromium_BCC.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/CoSb3_Skutterudite.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/CopperOxide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Copper_FCC.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Cu2O_Cuprite.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Diamond.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/ErbiumPyrogermanate.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/FePd_Tetra.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/FeS2_Pyrite.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/GalliumAntimonide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/GalliumArsenide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/GalliumNitride.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Germanium.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Gold_FCC.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/IndiumArsenide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/LaMnO3.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/LeadZirconateTitanate.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Li2MnO3.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/NaFeO2.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Nb3Sn.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Pentacene.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/SiAlONa.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Silicon.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/StrontiumTitanate.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/TelluriumDioxide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/TinDioxide_RT.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/TitaniumDioxide_Anatase.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/TitaniumDioxide_Rutile.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/TungstenDiselenide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/VanadiumDioxide_RT.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/ZincOxide.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/Zinc_HCP.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/ZirconiumNitride.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cdata/limno2.xtl +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/cifreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/crystals.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/ddiffs.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/__init__.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/bloch_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/csf_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/dif_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/mxtal_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/powder_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/diffract/stereo_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/display.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/dmreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/emcontrols.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/emdreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/expimage.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/fileutils.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/kdiffs.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/license-exception.txt +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/license.txt +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/mibreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/mrcreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/orientmap.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/picreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/pyemaps.egg-info/dependency_links.txt +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/pyemaps.egg-info/entry_points.txt +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/pyemaps.egg-info/top_level.txt +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/pyproject.toml +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/readerbase.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/al.img +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/al_dpgen.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/al_ediom.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/convert_image.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/dm_diff.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/mask.im3 +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/powder.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/raw.img +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_bloch.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_constructor.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_csf.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_dif.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_lacbed.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_pyemaps.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_scm.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/samples/si_stereo.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/scattering/__init__.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/scattering/sct_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/setup.cfg +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/spg/__init__.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/spg/spg_dec.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/tiffreader.py +0 -0
- {pyemaps-2.7.0 → pyemaps-2.9.0}/xtal.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyemaps
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.9.0
|
|
4
4
|
Summary: A Python Package for Transmission Electron Diffraction Simulations and Crystallographic Computing
|
|
5
5
|
Home-page: https://github.com/emlab-solutions/pyemaps
|
|
6
6
|
Author: EMLab Solutions, Inc.
|
|
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
|
|
|
24
24
|
License-File: license-exception.txt
|
|
25
25
|
License-File: license.txt
|
|
26
26
|
License-File: COPYING
|
|
27
|
-
Requires-Dist: emaps>=2.
|
|
27
|
+
Requires-Dist: emaps>=2.6.0
|
|
28
28
|
Requires-Dist: numpy>=2.0
|
|
29
29
|
Requires-Dist: matplotlib>=3.8.4
|
|
30
30
|
Provides-Extra: emd
|
|
@@ -70,6 +70,11 @@ The base features are free, under the GNU General Public License v3.0:
|
|
|
70
70
|
- Convergent beam electron diffraction, including large-angle CBED
|
|
71
71
|
- The electron scattering matrix
|
|
72
72
|
- Electron dispersion (the eigenvalues of the Bloch wave solution)
|
|
73
|
+
- **Electron lenses with aberrations**, corrected or not
|
|
74
|
+
- Ronchigrams
|
|
75
|
+
- STEM probes and their size
|
|
76
|
+
- Contrast transfer functions, with their coherence envelopes
|
|
77
|
+
- HREM images of thin samples
|
|
73
78
|
|
|
74
79
|
The extended 4D-STEM features need a license:
|
|
75
80
|
|
|
@@ -31,6 +31,11 @@ The base features are free, under the GNU General Public License v3.0:
|
|
|
31
31
|
- Convergent beam electron diffraction, including large-angle CBED
|
|
32
32
|
- The electron scattering matrix
|
|
33
33
|
- Electron dispersion (the eigenvalues of the Bloch wave solution)
|
|
34
|
+
- **Electron lenses with aberrations**, corrected or not
|
|
35
|
+
- Ronchigrams
|
|
36
|
+
- STEM probes and their size
|
|
37
|
+
- Contrast transfer functions, with their coherence envelopes
|
|
38
|
+
- HREM images of thin samples
|
|
34
39
|
|
|
35
40
|
The extended 4D-STEM features need a license:
|
|
36
41
|
|
|
@@ -172,6 +172,10 @@ from .expimage import read_image, write_im3, image_readers, image_datasets, Expe
|
|
|
172
172
|
|
|
173
173
|
#--------------Orientation maps (made by StackImage.mapOrientation; loading needs no license)----
|
|
174
174
|
from .orientmap import OrientationMap, OM_INDEXED, OM_FEW_PEAKS, OM_FAILED, OM_NOT_RUN
|
|
175
|
+
from .phasemap import PhaseMap, PM_NONE
|
|
176
|
+
|
|
177
|
+
#--------------Electron probes, Ronchigrams and CTF (emaps' probe module; free)----------------
|
|
178
|
+
from .probe import Probe
|
|
175
179
|
|
|
176
180
|
if PKG_TYPE != TYPE_FREE:
|
|
177
181
|
#------------------Diffraction Database Generator - paid package only---------------------------
|
|
@@ -221,6 +225,6 @@ if PKG_TYPE != TYPE_FREE:
|
|
|
221
225
|
# python not allowing numeric starting letter for variables such as 4dstem
|
|
222
226
|
from emaps.stem4d import send, ediom
|
|
223
227
|
try:
|
|
224
|
-
from .stackimg import StackImage
|
|
228
|
+
from .stackimg import StackImage, polar_transform
|
|
225
229
|
except ImportError as e:
|
|
226
230
|
print(f'Error importing image module: {e}. The 4D STEM module not available')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.9.0"
|
|
@@ -84,6 +84,8 @@ def add_dpgen(target):
|
|
|
84
84
|
:return: ``(status, file_name)``: 0 and the database file's path on success, or -1 and
|
|
85
85
|
``None`` (or the intended path) on failure. A message is printed either way.
|
|
86
86
|
:rtype: tuple
|
|
87
|
+
:raise ~pyemaps.errors.LicenseError: without an active pyEMAPS license (emaps 2.6.0
|
|
88
|
+
and later).
|
|
87
89
|
|
|
88
90
|
.. image:: https://github.com/emlab-solutions/imagepypy/raw/main/stereoprojectionmap.png
|
|
89
91
|
:width: 75%
|
|
@@ -136,6 +138,12 @@ def add_dpgen(target):
|
|
|
136
138
|
#release the memory
|
|
137
139
|
dpgen.cleanup()
|
|
138
140
|
|
|
141
|
+
if ret == -5:
|
|
142
|
+
from ..errors import LicenseError
|
|
143
|
+
raise LicenseError('Diffraction pattern database generation is a licensed feature, '
|
|
144
|
+
'and no active pyEMAPS license was found. Run "pyemaps -l trial" '
|
|
145
|
+
'for a 7-day trial license, or contact '
|
|
146
|
+
'support@emlabsoftware.com for one.')
|
|
139
147
|
if ret != 0:
|
|
140
148
|
print(f'Error generating diffraction patterns for {self.name}')
|
|
141
149
|
return -1, final_fp
|
|
@@ -220,3 +220,17 @@ class XDPImageError(Exception):
|
|
|
220
220
|
def __init__(self, message=''):
|
|
221
221
|
self.message = str(f'{message}')
|
|
222
222
|
super().__init__(self.message)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class LicenseError(Exception):
|
|
226
|
+
"""
|
|
227
|
+
Raised when a licensed feature is used without an active pyEMAPS license, or isn't in this
|
|
228
|
+
emaps package: the multislice simulations of :py:class:`~pyemaps.probe.Probe`
|
|
229
|
+
(:py:meth:`~pyemaps.probe.Probe.crystal_exit_wave` and
|
|
230
|
+
:py:meth:`~pyemaps.probe.Probe.crystal_ronchigram`) and diffraction pattern database
|
|
231
|
+
generation (:py:meth:`~pyemaps.crystals.Crystal.generateDPDB`). Run ``pyemaps -l trial``
|
|
232
|
+
for a 7-day trial license, or contact support@emlabsoftware.com for one.
|
|
233
|
+
"""
|
|
234
|
+
def __init__(self, message=''):
|
|
235
|
+
self.message = str(f'{message}')
|
|
236
|
+
super().__init__(self.message)
|