pyemaps 2.8.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.
Files changed (142) hide show
  1. {pyemaps-2.8.0 → pyemaps-2.9.0}/MANIFEST.in +1 -0
  2. {pyemaps-2.8.0/pyemaps.egg-info → pyemaps-2.9.0}/PKG-INFO +2 -2
  3. {pyemaps-2.8.0 → pyemaps-2.9.0}/__init__.py +2 -1
  4. pyemaps-2.9.0/__version__.py +1 -0
  5. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/dpgen_dec.py +8 -0
  6. {pyemaps-2.8.0 → pyemaps-2.9.0}/errors.py +14 -0
  7. pyemaps-2.9.0/notebooks/adf.ipynb +1500 -0
  8. pyemaps-2.9.0/notebooks/al_cu_phasemap.ipynb +725 -0
  9. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/al_ediom.ipynb +38 -38
  10. pyemaps-2.9.0/notebooks/al_orientmap.ipynb +930 -0
  11. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/powder.ipynb +33 -33
  12. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/probe.ipynb +115 -99
  13. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_bloch.ipynb +54 -54
  14. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_constructor.ipynb +34 -34
  15. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_csf.ipynb +49 -49
  16. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_dif.ipynb +66 -66
  17. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_lacbed.ipynb +46 -46
  18. pyemaps-2.9.0/notebooks/si_multislice.ipynb +648 -0
  19. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_scm.ipynb +53 -53
  20. {pyemaps-2.8.0 → pyemaps-2.9.0}/notebooks/si_stereo.ipynb +34 -34
  21. pyemaps-2.9.0/phasemap.py +223 -0
  22. {pyemaps-2.8.0 → pyemaps-2.9.0}/probe.py +376 -56
  23. {pyemaps-2.8.0 → pyemaps-2.9.0/pyemaps.egg-info}/PKG-INFO +2 -2
  24. {pyemaps-2.8.0 → pyemaps-2.9.0}/pyemaps.egg-info/SOURCES.txt +9 -0
  25. {pyemaps-2.8.0 → pyemaps-2.9.0}/pyemaps.egg-info/requires.txt +1 -1
  26. pyemaps-2.9.0/samples/Al_COD_4004108.cif +262 -0
  27. pyemaps-2.9.0/samples/Cu_COD_7101269.cif +267 -0
  28. pyemaps-2.9.0/samples/Si_COD_2102763.cif +317 -0
  29. pyemaps-2.9.0/samples/al_cu_phasemap.py +180 -0
  30. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/al_orientmap.py +12 -5
  31. pyemaps-2.9.0/samples/crystal_thickness.py +88 -0
  32. {pyemaps-2.8.0 → pyemaps-2.9.0}/setup.py +4 -1
  33. {pyemaps-2.8.0 → pyemaps-2.9.0}/stackimg.py +496 -2
  34. pyemaps-2.8.0/__version__.py +0 -1
  35. pyemaps-2.8.0/notebooks/adf.ipynb +0 -753
  36. pyemaps-2.8.0/notebooks/al_orientmap.ipynb +0 -916
  37. {pyemaps-2.8.0 → pyemaps-2.9.0}/COPYING +0 -0
  38. {pyemaps-2.8.0 → pyemaps-2.9.0}/README.md +0 -0
  39. {pyemaps-2.8.0 → pyemaps-2.9.0}/__config__.py +0 -0
  40. {pyemaps-2.8.0 → pyemaps-2.9.0}/__main__.py +0 -0
  41. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Aluminium.xtl +0 -0
  42. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/AluminiumOxide.xtl +0 -0
  43. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Aluminium_FCC.xtl +0 -0
  44. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/BariumTitanate_180k.xtl +0 -0
  45. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/BariumTitanate_270k.xtl +0 -0
  46. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/BariumTitanate_Tetra.xtl +0 -0
  47. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/BiMnO3.xtl +0 -0
  48. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Boron_Tetra.xtl +0 -0
  49. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/CadmiumSelenide_Hex.xtl +0 -0
  50. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/CadmiumSulfide_Cubic.xtl +0 -0
  51. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/CadmiumSulfide_Hex.xtl +0 -0
  52. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Chromium_BCC.xtl +0 -0
  53. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/CoSb3_Skutterudite.xtl +0 -0
  54. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/CopperOxide.xtl +0 -0
  55. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Copper_FCC.xtl +0 -0
  56. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Cu2O_Cuprite.xtl +0 -0
  57. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Diamond.xtl +0 -0
  58. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/ErbiumPyrogermanate.xtl +0 -0
  59. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/FePd_Tetra.xtl +0 -0
  60. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/FeS2_Pyrite.xtl +0 -0
  61. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/GalliumAntimonide.xtl +0 -0
  62. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/GalliumArsenide.xtl +0 -0
  63. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/GalliumNitride.xtl +0 -0
  64. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Germanium.xtl +0 -0
  65. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Gold_FCC.xtl +0 -0
  66. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/IndiumArsenide.xtl +0 -0
  67. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/LaMnO3.xtl +0 -0
  68. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/LeadZirconateTitanate.xtl +0 -0
  69. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Li2MnO3.xtl +0 -0
  70. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/NaFeO2.xtl +0 -0
  71. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Nb3Sn.xtl +0 -0
  72. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Pentacene.xtl +0 -0
  73. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/SiAlONa.xtl +0 -0
  74. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Silicon.xtl +0 -0
  75. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/StrontiumTitanate.xtl +0 -0
  76. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/TelluriumDioxide.xtl +0 -0
  77. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/TinDioxide_RT.xtl +0 -0
  78. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/TitaniumDioxide_Anatase.xtl +0 -0
  79. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/TitaniumDioxide_Rutile.xtl +0 -0
  80. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/TungstenDiselenide.xtl +0 -0
  81. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/VanadiumDioxide_RT.xtl +0 -0
  82. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/ZincOxide.xtl +0 -0
  83. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/Zinc_HCP.xtl +0 -0
  84. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/ZirconiumNitride.xtl +0 -0
  85. {pyemaps-2.8.0 → pyemaps-2.9.0}/cdata/limno2.xtl +0 -0
  86. {pyemaps-2.8.0 → pyemaps-2.9.0}/cifreader.py +0 -0
  87. {pyemaps-2.8.0 → pyemaps-2.9.0}/crystals.py +0 -0
  88. {pyemaps-2.8.0 → pyemaps-2.9.0}/ddiffs.py +0 -0
  89. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/__init__.py +0 -0
  90. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/bloch_dec.py +0 -0
  91. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/csf_dec.py +0 -0
  92. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/dif_dec.py +0 -0
  93. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/mxtal_dec.py +0 -0
  94. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/powder_dec.py +0 -0
  95. {pyemaps-2.8.0 → pyemaps-2.9.0}/diffract/stereo_dec.py +0 -0
  96. {pyemaps-2.8.0 → pyemaps-2.9.0}/display.py +0 -0
  97. {pyemaps-2.8.0 → pyemaps-2.9.0}/dmreader.py +0 -0
  98. {pyemaps-2.8.0 → pyemaps-2.9.0}/emcontrols.py +0 -0
  99. {pyemaps-2.8.0 → pyemaps-2.9.0}/emdreader.py +0 -0
  100. {pyemaps-2.8.0 → pyemaps-2.9.0}/expimage.py +0 -0
  101. {pyemaps-2.8.0 → pyemaps-2.9.0}/fileutils.py +0 -0
  102. {pyemaps-2.8.0 → pyemaps-2.9.0}/kdiffs.py +0 -0
  103. {pyemaps-2.8.0 → pyemaps-2.9.0}/license-exception.txt +0 -0
  104. {pyemaps-2.8.0 → pyemaps-2.9.0}/license.txt +0 -0
  105. {pyemaps-2.8.0 → pyemaps-2.9.0}/mibreader.py +0 -0
  106. {pyemaps-2.8.0 → pyemaps-2.9.0}/mrcreader.py +0 -0
  107. {pyemaps-2.8.0 → pyemaps-2.9.0}/orientmap.py +0 -0
  108. {pyemaps-2.8.0 → pyemaps-2.9.0}/picreader.py +0 -0
  109. {pyemaps-2.8.0 → pyemaps-2.9.0}/pyemaps.egg-info/dependency_links.txt +0 -0
  110. {pyemaps-2.8.0 → pyemaps-2.9.0}/pyemaps.egg-info/entry_points.txt +0 -0
  111. {pyemaps-2.8.0 → pyemaps-2.9.0}/pyemaps.egg-info/top_level.txt +0 -0
  112. {pyemaps-2.8.0 → pyemaps-2.9.0}/pyproject.toml +0 -0
  113. {pyemaps-2.8.0 → pyemaps-2.9.0}/readerbase.py +0 -0
  114. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/adf.py +0 -0
  115. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/al.img +0 -0
  116. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/al_dpgen.py +0 -0
  117. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/al_ediom.py +0 -0
  118. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/convert_image.py +0 -0
  119. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/crystal_imaging.py +0 -0
  120. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/ctf.py +0 -0
  121. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/dm_diff.py +0 -0
  122. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/hrem.py +0 -0
  123. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/mask.im3 +0 -0
  124. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/powder.py +0 -0
  125. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/raw.img +0 -0
  126. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/ronchigram.py +0 -0
  127. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_bloch.py +0 -0
  128. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_constructor.py +0 -0
  129. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_csf.py +0 -0
  130. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_dif.py +0 -0
  131. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_lacbed.py +0 -0
  132. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_pyemaps.py +0 -0
  133. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_scm.py +0 -0
  134. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/si_stereo.py +0 -0
  135. {pyemaps-2.8.0 → pyemaps-2.9.0}/samples/stem_probe.py +0 -0
  136. {pyemaps-2.8.0 → pyemaps-2.9.0}/scattering/__init__.py +0 -0
  137. {pyemaps-2.8.0 → pyemaps-2.9.0}/scattering/sct_dec.py +0 -0
  138. {pyemaps-2.8.0 → pyemaps-2.9.0}/setup.cfg +0 -0
  139. {pyemaps-2.8.0 → pyemaps-2.9.0}/spg/__init__.py +0 -0
  140. {pyemaps-2.8.0 → pyemaps-2.9.0}/spg/spg_dec.py +0 -0
  141. {pyemaps-2.8.0 → pyemaps-2.9.0}/tiffreader.py +0 -0
  142. {pyemaps-2.8.0 → pyemaps-2.9.0}/xtal.py +0 -0
@@ -12,4 +12,5 @@ include license-exception.txt
12
12
 
13
13
  include cdata/*.xtl
14
14
  include samples/*.py
15
+ include samples/*.cif
15
16
  include notebooks/*.ipynb
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyemaps
3
- Version: 2.8.0
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.5.0
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
@@ -172,6 +172,7 @@ 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
175
176
 
176
177
  #--------------Electron probes, Ronchigrams and CTF (emaps' probe module; free)----------------
177
178
  from .probe import Probe
@@ -224,6 +225,6 @@ if PKG_TYPE != TYPE_FREE:
224
225
  # python not allowing numeric starting letter for variables such as 4dstem
225
226
  from emaps.stem4d import send, ediom
226
227
  try:
227
- from .stackimg import StackImage
228
+ from .stackimg import StackImage, polar_transform
228
229
  except ImportError as e:
229
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)