pyemaps 2.7.0__tar.gz → 2.8.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 (132) hide show
  1. {pyemaps-2.7.0/pyemaps.egg-info → pyemaps-2.8.0}/PKG-INFO +7 -2
  2. {pyemaps-2.7.0 → pyemaps-2.8.0}/README.md +5 -0
  3. {pyemaps-2.7.0 → pyemaps-2.8.0}/__init__.py +3 -0
  4. pyemaps-2.8.0/__version__.py +1 -0
  5. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/adf.ipynb +62 -65
  6. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/al_ediom.ipynb +38 -38
  7. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/al_orientmap.ipynb +65 -71
  8. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/powder.ipynb +33 -33
  9. pyemaps-2.8.0/notebooks/probe.ipynb +1042 -0
  10. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_bloch.ipynb +54 -54
  11. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_constructor.ipynb +34 -34
  12. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_csf.ipynb +49 -49
  13. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_dif.ipynb +66 -66
  14. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_lacbed.ipynb +46 -46
  15. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_scm.ipynb +53 -53
  16. {pyemaps-2.7.0 → pyemaps-2.8.0}/notebooks/si_stereo.ipynb +34 -34
  17. pyemaps-2.8.0/probe.py +1122 -0
  18. {pyemaps-2.7.0 → pyemaps-2.8.0/pyemaps.egg-info}/PKG-INFO +7 -2
  19. {pyemaps-2.7.0 → pyemaps-2.8.0}/pyemaps.egg-info/SOURCES.txt +8 -0
  20. {pyemaps-2.7.0 → pyemaps-2.8.0}/pyemaps.egg-info/requires.txt +1 -1
  21. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/adf.py +12 -4
  22. pyemaps-2.8.0/samples/crystal_imaging.py +106 -0
  23. pyemaps-2.8.0/samples/ctf.py +100 -0
  24. pyemaps-2.8.0/samples/hrem.py +85 -0
  25. pyemaps-2.8.0/samples/ronchigram.py +83 -0
  26. pyemaps-2.8.0/samples/stem_probe.py +130 -0
  27. {pyemaps-2.7.0 → pyemaps-2.8.0}/setup.py +3 -2
  28. {pyemaps-2.7.0 → pyemaps-2.8.0}/stackimg.py +22 -5
  29. pyemaps-2.7.0/__version__.py +0 -1
  30. {pyemaps-2.7.0 → pyemaps-2.8.0}/COPYING +0 -0
  31. {pyemaps-2.7.0 → pyemaps-2.8.0}/MANIFEST.in +0 -0
  32. {pyemaps-2.7.0 → pyemaps-2.8.0}/__config__.py +0 -0
  33. {pyemaps-2.7.0 → pyemaps-2.8.0}/__main__.py +0 -0
  34. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Aluminium.xtl +0 -0
  35. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/AluminiumOxide.xtl +0 -0
  36. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Aluminium_FCC.xtl +0 -0
  37. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/BariumTitanate_180k.xtl +0 -0
  38. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/BariumTitanate_270k.xtl +0 -0
  39. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/BariumTitanate_Tetra.xtl +0 -0
  40. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/BiMnO3.xtl +0 -0
  41. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Boron_Tetra.xtl +0 -0
  42. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/CadmiumSelenide_Hex.xtl +0 -0
  43. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/CadmiumSulfide_Cubic.xtl +0 -0
  44. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/CadmiumSulfide_Hex.xtl +0 -0
  45. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Chromium_BCC.xtl +0 -0
  46. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/CoSb3_Skutterudite.xtl +0 -0
  47. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/CopperOxide.xtl +0 -0
  48. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Copper_FCC.xtl +0 -0
  49. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Cu2O_Cuprite.xtl +0 -0
  50. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Diamond.xtl +0 -0
  51. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/ErbiumPyrogermanate.xtl +0 -0
  52. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/FePd_Tetra.xtl +0 -0
  53. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/FeS2_Pyrite.xtl +0 -0
  54. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/GalliumAntimonide.xtl +0 -0
  55. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/GalliumArsenide.xtl +0 -0
  56. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/GalliumNitride.xtl +0 -0
  57. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Germanium.xtl +0 -0
  58. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Gold_FCC.xtl +0 -0
  59. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/IndiumArsenide.xtl +0 -0
  60. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/LaMnO3.xtl +0 -0
  61. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/LeadZirconateTitanate.xtl +0 -0
  62. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Li2MnO3.xtl +0 -0
  63. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/NaFeO2.xtl +0 -0
  64. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Nb3Sn.xtl +0 -0
  65. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Pentacene.xtl +0 -0
  66. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/SiAlONa.xtl +0 -0
  67. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Silicon.xtl +0 -0
  68. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/StrontiumTitanate.xtl +0 -0
  69. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/TelluriumDioxide.xtl +0 -0
  70. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/TinDioxide_RT.xtl +0 -0
  71. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/TitaniumDioxide_Anatase.xtl +0 -0
  72. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/TitaniumDioxide_Rutile.xtl +0 -0
  73. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/TungstenDiselenide.xtl +0 -0
  74. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/VanadiumDioxide_RT.xtl +0 -0
  75. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/ZincOxide.xtl +0 -0
  76. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/Zinc_HCP.xtl +0 -0
  77. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/ZirconiumNitride.xtl +0 -0
  78. {pyemaps-2.7.0 → pyemaps-2.8.0}/cdata/limno2.xtl +0 -0
  79. {pyemaps-2.7.0 → pyemaps-2.8.0}/cifreader.py +0 -0
  80. {pyemaps-2.7.0 → pyemaps-2.8.0}/crystals.py +0 -0
  81. {pyemaps-2.7.0 → pyemaps-2.8.0}/ddiffs.py +0 -0
  82. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/__init__.py +0 -0
  83. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/bloch_dec.py +0 -0
  84. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/csf_dec.py +0 -0
  85. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/dif_dec.py +0 -0
  86. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/dpgen_dec.py +0 -0
  87. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/mxtal_dec.py +0 -0
  88. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/powder_dec.py +0 -0
  89. {pyemaps-2.7.0 → pyemaps-2.8.0}/diffract/stereo_dec.py +0 -0
  90. {pyemaps-2.7.0 → pyemaps-2.8.0}/display.py +0 -0
  91. {pyemaps-2.7.0 → pyemaps-2.8.0}/dmreader.py +0 -0
  92. {pyemaps-2.7.0 → pyemaps-2.8.0}/emcontrols.py +0 -0
  93. {pyemaps-2.7.0 → pyemaps-2.8.0}/emdreader.py +0 -0
  94. {pyemaps-2.7.0 → pyemaps-2.8.0}/errors.py +0 -0
  95. {pyemaps-2.7.0 → pyemaps-2.8.0}/expimage.py +0 -0
  96. {pyemaps-2.7.0 → pyemaps-2.8.0}/fileutils.py +0 -0
  97. {pyemaps-2.7.0 → pyemaps-2.8.0}/kdiffs.py +0 -0
  98. {pyemaps-2.7.0 → pyemaps-2.8.0}/license-exception.txt +0 -0
  99. {pyemaps-2.7.0 → pyemaps-2.8.0}/license.txt +0 -0
  100. {pyemaps-2.7.0 → pyemaps-2.8.0}/mibreader.py +0 -0
  101. {pyemaps-2.7.0 → pyemaps-2.8.0}/mrcreader.py +0 -0
  102. {pyemaps-2.7.0 → pyemaps-2.8.0}/orientmap.py +0 -0
  103. {pyemaps-2.7.0 → pyemaps-2.8.0}/picreader.py +0 -0
  104. {pyemaps-2.7.0 → pyemaps-2.8.0}/pyemaps.egg-info/dependency_links.txt +0 -0
  105. {pyemaps-2.7.0 → pyemaps-2.8.0}/pyemaps.egg-info/entry_points.txt +0 -0
  106. {pyemaps-2.7.0 → pyemaps-2.8.0}/pyemaps.egg-info/top_level.txt +0 -0
  107. {pyemaps-2.7.0 → pyemaps-2.8.0}/pyproject.toml +0 -0
  108. {pyemaps-2.7.0 → pyemaps-2.8.0}/readerbase.py +0 -0
  109. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/al.img +0 -0
  110. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/al_dpgen.py +0 -0
  111. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/al_ediom.py +0 -0
  112. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/al_orientmap.py +0 -0
  113. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/convert_image.py +0 -0
  114. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/dm_diff.py +0 -0
  115. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/mask.im3 +0 -0
  116. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/powder.py +0 -0
  117. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/raw.img +0 -0
  118. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_bloch.py +0 -0
  119. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_constructor.py +0 -0
  120. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_csf.py +0 -0
  121. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_dif.py +0 -0
  122. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_lacbed.py +0 -0
  123. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_pyemaps.py +0 -0
  124. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_scm.py +0 -0
  125. {pyemaps-2.7.0 → pyemaps-2.8.0}/samples/si_stereo.py +0 -0
  126. {pyemaps-2.7.0 → pyemaps-2.8.0}/scattering/__init__.py +0 -0
  127. {pyemaps-2.7.0 → pyemaps-2.8.0}/scattering/sct_dec.py +0 -0
  128. {pyemaps-2.7.0 → pyemaps-2.8.0}/setup.cfg +0 -0
  129. {pyemaps-2.7.0 → pyemaps-2.8.0}/spg/__init__.py +0 -0
  130. {pyemaps-2.7.0 → pyemaps-2.8.0}/spg/spg_dec.py +0 -0
  131. {pyemaps-2.7.0 → pyemaps-2.8.0}/tiffreader.py +0 -0
  132. {pyemaps-2.7.0 → pyemaps-2.8.0}/xtal.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyemaps
3
- Version: 2.7.0
3
+ Version: 2.8.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.4.0
27
+ Requires-Dist: emaps>=2.5.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
 
@@ -173,6 +173,9 @@ from .expimage import read_image, write_im3, image_readers, image_datasets, Expe
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
175
 
176
+ #--------------Electron probes, Ronchigrams and CTF (emaps' probe module; free)----------------
177
+ from .probe import Probe
178
+
176
179
  if PKG_TYPE != TYPE_FREE:
177
180
  #------------------Diffraction Database Generator - paid package only---------------------------
178
181
  try:
@@ -0,0 +1 @@
1
+ __version__ = "2.8.0"
@@ -53,10 +53,10 @@
53
53
  "id": "4c5b4764",
54
54
  "metadata": {
55
55
  "execution": {
56
- "iopub.execute_input": "2026-11-20T09:19:38.486364Z",
57
- "iopub.status.busy": "2026-11-20T09:19:38.485330Z",
58
- "iopub.status.idle": "2026-11-20T09:19:39.380404Z",
59
- "shell.execute_reply": "2026-11-20T09:19:39.379392Z"
56
+ "iopub.execute_input": "2026-11-25T01:19:45.972103Z",
57
+ "iopub.status.busy": "2026-11-25T01:19:45.971025Z",
58
+ "iopub.status.idle": "2026-11-25T01:19:47.567808Z",
59
+ "shell.execute_reply": "2026-11-25T01:19:47.566801Z"
60
60
  }
61
61
  },
62
62
  "outputs": [
@@ -64,7 +64,7 @@
64
64
  "name": "stdout",
65
65
  "output_type": "stream",
66
66
  "text": [
67
- "pyEMAPS 2.6.0\n",
67
+ "pyEMAPS 2.7.0\n",
68
68
  "License: active\n"
69
69
  ]
70
70
  }
@@ -113,10 +113,10 @@
113
113
  "id": "a3e298db",
114
114
  "metadata": {
115
115
  "execution": {
116
- "iopub.execute_input": "2026-11-20T09:19:39.384406Z",
117
- "iopub.status.busy": "2026-11-20T09:19:39.383401Z",
118
- "iopub.status.idle": "2026-11-20T09:19:40.349588Z",
119
- "shell.execute_reply": "2026-11-20T09:19:40.348577Z"
116
+ "iopub.execute_input": "2026-11-25T01:19:47.571320Z",
117
+ "iopub.status.busy": "2026-11-25T01:19:47.570313Z",
118
+ "iopub.status.idle": "2026-11-25T01:19:49.075836Z",
119
+ "shell.execute_reply": "2026-11-25T01:19:49.073318Z"
120
120
  }
121
121
  },
122
122
  "outputs": [
@@ -160,14 +160,12 @@
160
160
  "source": [
161
161
  "## Step 3: Look at the diffraction patterns\n",
162
162
  "\n",
163
- "The file is in pyEMAPS' small-header format: an 8-byte header of four 16-bit integers (the\n",
164
- "width, the height, the number of stacks and the data type), then the stacks, one after another.\n",
165
- "Each stack is the diffraction pattern at one scan position.\n",
163
+ "`pyemaps.read_image` reads diffraction patterns from a file into a NumPy array, one pattern per\n",
164
+ "scan position. It reads TIFF, DigitalMicrograph, EMD, MRC, Merlin and other files, as well as\n",
165
+ "pyEMAPS' own `.im3` format used here.\n",
166
166
  "\n",
167
- "NumPy can read it directly. `np.memmap` maps the file into memory without loading it all, so\n",
168
- "each pattern is read only when it's used. (With emaps 2.0.0 and earlier,\n",
169
- "`StackImage.loadImage()` misreads 16-bit files like this one, which is another reason to read\n",
170
- "the patterns with NumPy here.)"
167
+ "An `.im3` file records the pattern size and the number of patterns, but not the scan's shape, so\n",
168
+ "`scan_shape` gives it: 30 rows of 30 positions. The whole scan, 472 MB, is read into memory."
171
169
  ]
172
170
  },
173
171
  {
@@ -176,10 +174,10 @@
176
174
  "id": "eb3bfbfa",
177
175
  "metadata": {
178
176
  "execution": {
179
- "iopub.execute_input": "2026-11-20T09:19:40.351584Z",
180
- "iopub.status.busy": "2026-11-20T09:19:40.351584Z",
181
- "iopub.status.idle": "2026-11-20T09:19:40.358812Z",
182
- "shell.execute_reply": "2026-11-20T09:19:40.357802Z"
177
+ "iopub.execute_input": "2026-11-25T01:19:49.081365Z",
178
+ "iopub.status.busy": "2026-11-25T01:19:49.080355Z",
179
+ "iopub.status.idle": "2026-11-25T01:19:50.224026Z",
180
+ "shell.execute_reply": "2026-11-25T01:19:50.220256Z"
183
181
  }
184
182
  },
185
183
  "outputs": [
@@ -187,21 +185,20 @@
187
185
  "name": "stdout",
188
186
  "output_type": "stream",
189
187
  "text": [
190
- "900 patterns of 512 x 512 pixels; data type 11 (11: 16-bit integers, several stacks)\n",
191
- "Scan: 30 rows of 30 positions\n"
188
+ "ExperimentalImage('adftest900.im3': 900 pattern(s) of 512 x 512, scan (30, 30), int16, read by pyEMAPS)\n",
189
+ "900 patterns of 512 x 512 pixels, int16; scan: 30 rows of 30 positions\n"
192
190
  ]
193
191
  }
194
192
  ],
195
193
  "source": [
196
- "width, height, nstacks, dtype = (int(v) for v in np.fromfile(IMAGE_FILE, dtype='<i2', count=4))\n",
197
- "print(f'{nstacks} patterns of {width} x {height} pixels; data type {dtype} '\n",
198
- " '(11: 16-bit integers, several stacks)')\n",
199
- "\n",
200
- "patterns = np.memmap(IMAGE_FILE, dtype='<i2', mode='r', offset=8,\n",
201
- " shape=(nstacks, height, width))\n",
202
- "\n",
203
- "SCAN = 30 # scan positions per row\n",
204
- "print(f'Scan: {nstacks // SCAN} rows of {SCAN} positions')"
194
+ "scan = pyemaps.read_image(IMAGE_FILE, scan_shape=(30, 30)) # (rows, columns) of the scan\n",
195
+ "print(scan)\n",
196
+ "\n",
197
+ "patterns = scan.data # one pattern per scan position, in scan order\n",
198
+ "nstacks, height, width = patterns.shape\n",
199
+ "SCAN = scan.scan_shape[1] # scan positions per row\n",
200
+ "print(f'{nstacks} patterns of {width} x {height} pixels, {patterns.dtype}; '\n",
201
+ " f'scan: {scan.scan_shape[0]} rows of {SCAN} positions')"
205
202
  ]
206
203
  },
207
204
  {
@@ -219,10 +216,10 @@
219
216
  "id": "e4915e84",
220
217
  "metadata": {
221
218
  "execution": {
222
- "iopub.execute_input": "2026-11-20T09:19:40.360812Z",
223
- "iopub.status.busy": "2026-11-20T09:19:40.360812Z",
224
- "iopub.status.idle": "2026-11-20T09:19:41.175483Z",
225
- "shell.execute_reply": "2026-11-20T09:19:41.174471Z"
219
+ "iopub.execute_input": "2026-11-25T01:19:50.227546Z",
220
+ "iopub.status.busy": "2026-11-25T01:19:50.227546Z",
221
+ "iopub.status.idle": "2026-11-25T01:19:51.588384Z",
222
+ "shell.execute_reply": "2026-11-25T01:19:51.587377Z"
226
223
  }
227
224
  },
228
225
  "outputs": [
@@ -281,10 +278,10 @@
281
278
  "id": "a39bb41a",
282
279
  "metadata": {
283
280
  "execution": {
284
- "iopub.execute_input": "2026-11-20T09:19:41.182481Z",
285
- "iopub.status.busy": "2026-11-20T09:19:41.182481Z",
286
- "iopub.status.idle": "2026-11-20T09:19:41.197537Z",
287
- "shell.execute_reply": "2026-11-20T09:19:41.196531Z"
281
+ "iopub.execute_input": "2026-11-25T01:19:51.596881Z",
282
+ "iopub.status.busy": "2026-11-25T01:19:51.596881Z",
283
+ "iopub.status.idle": "2026-11-25T01:19:51.639632Z",
284
+ "shell.execute_reply": "2026-11-25T01:19:51.637623Z"
288
285
  }
289
286
  },
290
287
  "outputs": [
@@ -345,10 +342,10 @@
345
342
  "id": "e4e86718",
346
343
  "metadata": {
347
344
  "execution": {
348
- "iopub.execute_input": "2026-11-20T09:19:41.201575Z",
349
- "iopub.status.busy": "2026-11-20T09:19:41.200540Z",
350
- "iopub.status.idle": "2026-11-20T09:19:42.698018Z",
351
- "shell.execute_reply": "2026-11-20T09:19:42.697009Z"
345
+ "iopub.execute_input": "2026-11-25T01:19:51.651215Z",
346
+ "iopub.status.busy": "2026-11-25T01:19:51.649221Z",
347
+ "iopub.status.idle": "2026-11-25T01:19:54.333328Z",
348
+ "shell.execute_reply": "2026-11-25T01:19:54.329774Z"
352
349
  }
353
350
  },
354
351
  "outputs": [
@@ -397,10 +394,10 @@
397
394
  "id": "b450cfa7",
398
395
  "metadata": {
399
396
  "execution": {
400
- "iopub.execute_input": "2026-11-20T09:19:42.701018Z",
401
- "iopub.status.busy": "2026-11-20T09:19:42.700017Z",
402
- "iopub.status.idle": "2026-11-20T09:19:43.294070Z",
403
- "shell.execute_reply": "2026-11-20T09:19:43.293559Z"
397
+ "iopub.execute_input": "2026-11-25T01:19:54.341880Z",
398
+ "iopub.status.busy": "2026-11-25T01:19:54.340370Z",
399
+ "iopub.status.idle": "2026-11-25T01:19:55.407891Z",
400
+ "shell.execute_reply": "2026-11-25T01:19:55.407891Z"
404
401
  }
405
402
  },
406
403
  "outputs": [
@@ -471,10 +468,10 @@
471
468
  "id": "a8027cab",
472
469
  "metadata": {
473
470
  "execution": {
474
- "iopub.execute_input": "2026-11-20T09:19:43.297114Z",
475
- "iopub.status.busy": "2026-11-20T09:19:43.296078Z",
476
- "iopub.status.idle": "2026-11-20T09:19:43.493825Z",
477
- "shell.execute_reply": "2026-11-20T09:19:43.492814Z"
471
+ "iopub.execute_input": "2026-11-25T01:19:55.413363Z",
472
+ "iopub.status.busy": "2026-11-25T01:19:55.412148Z",
473
+ "iopub.status.idle": "2026-11-25T01:19:55.770679Z",
474
+ "shell.execute_reply": "2026-11-25T01:19:55.769122Z"
478
475
  }
479
476
  },
480
477
  "outputs": [
@@ -520,10 +517,10 @@
520
517
  "id": "1714a70a",
521
518
  "metadata": {
522
519
  "execution": {
523
- "iopub.execute_input": "2026-11-20T09:19:43.496869Z",
524
- "iopub.status.busy": "2026-11-20T09:19:43.495857Z",
525
- "iopub.status.idle": "2026-11-20T09:19:44.148990Z",
526
- "shell.execute_reply": "2026-11-20T09:19:44.148483Z"
520
+ "iopub.execute_input": "2026-11-25T01:19:55.775710Z",
521
+ "iopub.status.busy": "2026-11-25T01:19:55.775710Z",
522
+ "iopub.status.idle": "2026-11-25T01:19:56.987688Z",
523
+ "shell.execute_reply": "2026-11-25T01:19:56.985673Z"
527
524
  }
528
525
  },
529
526
  "outputs": [
@@ -540,7 +537,7 @@
540
537
  ],
541
538
  "source": [
542
539
  "MASK_FILE = os.path.join(SAMPLES, 'mask.im3')\n",
543
- "mask = np.fromfile(MASK_FILE, dtype='<f4', offset=8).reshape(height, width) # float32 pixels\n",
540
+ "mask = pyemaps.read_image(MASK_FILE).data[0] # one pattern-sized float32 image\n",
544
541
  "\n",
545
542
  "ret, data = StackImage(IMAGE_FILE, ndtype=EM_INT).generateMaskedImage(MASK_FILE, SCAN)\n",
546
543
  "masked = np.array(data, dtype=float).reshape(-1, SCAN)\n",
@@ -584,10 +581,10 @@
584
581
  "id": "e5a3d64f",
585
582
  "metadata": {
586
583
  "execution": {
587
- "iopub.execute_input": "2026-11-20T09:19:44.153003Z",
588
- "iopub.status.busy": "2026-11-20T09:19:44.153003Z",
589
- "iopub.status.idle": "2026-11-20T09:19:44.762860Z",
590
- "shell.execute_reply": "2026-11-20T09:19:44.761854Z"
584
+ "iopub.execute_input": "2026-11-25T01:19:56.996235Z",
585
+ "iopub.status.busy": "2026-11-25T01:19:56.995237Z",
586
+ "iopub.status.idle": "2026-11-25T01:19:58.316724Z",
587
+ "shell.execute_reply": "2026-11-25T01:19:58.316201Z"
591
588
  }
592
589
  },
593
590
  "outputs": [
@@ -595,7 +592,7 @@
595
592
  "name": "stdout",
596
593
  "output_type": "stream",
597
594
  "text": [
598
- "The numpy image was successfully converted to pyEMAPS image format and saved as C:\\pyemaps_data\\sh_converted\\numpy_image_20261120_201944.im3\n"
595
+ "The numpy image was successfully converted to pyEMAPS image format and saved as C:\\pyemaps_data\\sh_converted\\numpy_image_20261125_121957.im3\n"
599
596
  ]
600
597
  },
601
598
  {
@@ -647,10 +644,10 @@
647
644
  "id": "7a93969a",
648
645
  "metadata": {
649
646
  "execution": {
650
- "iopub.execute_input": "2026-11-20T09:19:44.765862Z",
651
- "iopub.status.busy": "2026-11-20T09:19:44.765862Z",
652
- "iopub.status.idle": "2026-11-20T09:19:44.889374Z",
653
- "shell.execute_reply": "2026-11-20T09:19:44.888367Z"
647
+ "iopub.execute_input": "2026-11-25T01:19:58.321301Z",
648
+ "iopub.status.busy": "2026-11-25T01:19:58.320300Z",
649
+ "iopub.status.idle": "2026-11-25T01:19:58.530847Z",
650
+ "shell.execute_reply": "2026-11-25T01:19:58.530847Z"
654
651
  }
655
652
  },
656
653
  "outputs": [
@@ -53,10 +53,10 @@
53
53
  "id": "f55ec76c",
54
54
  "metadata": {
55
55
  "execution": {
56
- "iopub.execute_input": "2026-11-20T09:19:11.042015Z",
57
- "iopub.status.busy": "2026-11-20T09:19:11.042015Z",
58
- "iopub.status.idle": "2026-11-20T09:19:11.884514Z",
59
- "shell.execute_reply": "2026-11-20T09:19:11.883507Z"
56
+ "iopub.execute_input": "2026-11-25T00:56:28.127504Z",
57
+ "iopub.status.busy": "2026-11-25T00:56:28.127504Z",
58
+ "iopub.status.idle": "2026-11-25T00:56:29.604031Z",
59
+ "shell.execute_reply": "2026-11-25T00:56:29.602515Z"
60
60
  }
61
61
  },
62
62
  "outputs": [
@@ -64,7 +64,7 @@
64
64
  "name": "stdout",
65
65
  "output_type": "stream",
66
66
  "text": [
67
- "pyEMAPS 2.6.0\n",
67
+ "pyEMAPS 2.7.0\n",
68
68
  "License: active\n"
69
69
  ]
70
70
  }
@@ -108,10 +108,10 @@
108
108
  "id": "c835654c",
109
109
  "metadata": {
110
110
  "execution": {
111
- "iopub.execute_input": "2026-11-20T09:19:11.887544Z",
112
- "iopub.status.busy": "2026-11-20T09:19:11.886552Z",
113
- "iopub.status.idle": "2026-11-20T09:19:11.897333Z",
114
- "shell.execute_reply": "2026-11-20T09:19:11.894727Z"
111
+ "iopub.execute_input": "2026-11-25T00:56:29.614111Z",
112
+ "iopub.status.busy": "2026-11-25T00:56:29.610581Z",
113
+ "iopub.status.idle": "2026-11-25T00:56:29.634508Z",
114
+ "shell.execute_reply": "2026-11-25T00:56:29.633495Z"
115
115
  }
116
116
  },
117
117
  "outputs": [
@@ -160,10 +160,10 @@
160
160
  "id": "9ed1754b",
161
161
  "metadata": {
162
162
  "execution": {
163
- "iopub.execute_input": "2026-11-20T09:19:11.903368Z",
164
- "iopub.status.busy": "2026-11-20T09:19:11.903368Z",
165
- "iopub.status.idle": "2026-11-20T09:19:13.467312Z",
166
- "shell.execute_reply": "2026-11-20T09:19:13.465866Z"
163
+ "iopub.execute_input": "2026-11-25T00:56:29.637503Z",
164
+ "iopub.status.busy": "2026-11-25T00:56:29.636503Z",
165
+ "iopub.status.idle": "2026-11-25T00:56:31.561729Z",
166
+ "shell.execute_reply": "2026-11-25T00:56:31.561226Z"
167
167
  }
168
168
  },
169
169
  "outputs": [
@@ -174,7 +174,7 @@
174
174
  "*******************************************************************************\n",
175
175
  "* The diffraction pattern database for Aluminium has been generated successfully\n",
176
176
  "* and saved in:\n",
177
- "* C:\\pyemaps_data\\dpdb\\Aluminium-20261120201911.bin\n",
177
+ "* C:\\pyemaps_data\\dpdb\\Aluminium-20261125115629.bin\n",
178
178
  "*******************************************************************************\n"
179
179
  ]
180
180
  }
@@ -201,10 +201,10 @@
201
201
  "id": "54be04a8",
202
202
  "metadata": {
203
203
  "execution": {
204
- "iopub.execute_input": "2026-11-20T09:19:13.469344Z",
205
- "iopub.status.busy": "2026-11-20T09:19:13.469344Z",
206
- "iopub.status.idle": "2026-11-20T09:19:13.579594Z",
207
- "shell.execute_reply": "2026-11-20T09:19:13.578586Z"
204
+ "iopub.execute_input": "2026-11-25T00:56:31.566740Z",
205
+ "iopub.status.busy": "2026-11-25T00:56:31.565743Z",
206
+ "iopub.status.idle": "2026-11-25T00:56:31.770686Z",
207
+ "shell.execute_reply": "2026-11-25T00:56:31.769067Z"
208
208
  }
209
209
  },
210
210
  "outputs": [
@@ -278,10 +278,10 @@
278
278
  "id": "7044e9cb",
279
279
  "metadata": {
280
280
  "execution": {
281
- "iopub.execute_input": "2026-11-20T09:19:13.582592Z",
282
- "iopub.status.busy": "2026-11-20T09:19:13.582592Z",
283
- "iopub.status.idle": "2026-11-20T09:19:14.035227Z",
284
- "shell.execute_reply": "2026-11-20T09:19:14.034222Z"
281
+ "iopub.execute_input": "2026-11-25T00:56:31.773693Z",
282
+ "iopub.status.busy": "2026-11-25T00:56:31.773693Z",
283
+ "iopub.status.idle": "2026-11-25T00:56:32.550854Z",
284
+ "shell.execute_reply": "2026-11-25T00:56:32.548104Z"
285
285
  }
286
286
  },
287
287
  "outputs": [
@@ -392,10 +392,10 @@
392
392
  "id": "27c73f24",
393
393
  "metadata": {
394
394
  "execution": {
395
- "iopub.execute_input": "2026-11-20T09:19:14.038229Z",
396
- "iopub.status.busy": "2026-11-20T09:19:14.037265Z",
397
- "iopub.status.idle": "2026-11-20T09:19:14.045817Z",
398
- "shell.execute_reply": "2026-11-20T09:19:14.044813Z"
395
+ "iopub.execute_input": "2026-11-25T00:56:32.558077Z",
396
+ "iopub.status.busy": "2026-11-25T00:56:32.556038Z",
397
+ "iopub.status.idle": "2026-11-25T00:56:32.570744Z",
398
+ "shell.execute_reply": "2026-11-25T00:56:32.569232Z"
399
399
  }
400
400
  },
401
401
  "outputs": [
@@ -473,10 +473,10 @@
473
473
  "id": "42b8108c",
474
474
  "metadata": {
475
475
  "execution": {
476
- "iopub.execute_input": "2026-11-20T09:19:14.047823Z",
477
- "iopub.status.busy": "2026-11-20T09:19:14.047823Z",
478
- "iopub.status.idle": "2026-11-20T09:19:14.053024Z",
479
- "shell.execute_reply": "2026-11-20T09:19:14.053024Z"
476
+ "iopub.execute_input": "2026-11-25T00:56:32.573745Z",
477
+ "iopub.status.busy": "2026-11-25T00:56:32.573745Z",
478
+ "iopub.status.idle": "2026-11-25T00:56:32.591801Z",
479
+ "shell.execute_reply": "2026-11-25T00:56:32.590577Z"
480
480
  }
481
481
  },
482
482
  "outputs": [
@@ -531,10 +531,10 @@
531
531
  "id": "358a4d30",
532
532
  "metadata": {
533
533
  "execution": {
534
- "iopub.execute_input": "2026-11-20T09:19:14.055675Z",
535
- "iopub.status.busy": "2026-11-20T09:19:14.055675Z",
536
- "iopub.status.idle": "2026-11-20T09:19:14.059582Z",
537
- "shell.execute_reply": "2026-11-20T09:19:14.059582Z"
534
+ "iopub.execute_input": "2026-11-25T00:56:32.594308Z",
535
+ "iopub.status.busy": "2026-11-25T00:56:32.594308Z",
536
+ "iopub.status.idle": "2026-11-25T00:56:32.600781Z",
537
+ "shell.execute_reply": "2026-11-25T00:56:32.599775Z"
538
538
  }
539
539
  },
540
540
  "outputs": [
@@ -580,10 +580,10 @@
580
580
  "id": "4722c6bb",
581
581
  "metadata": {
582
582
  "execution": {
583
- "iopub.execute_input": "2026-11-20T09:19:14.062632Z",
584
- "iopub.status.busy": "2026-11-20T09:19:14.062632Z",
585
- "iopub.status.idle": "2026-11-20T09:19:14.203982Z",
586
- "shell.execute_reply": "2026-11-20T09:19:14.202976Z"
583
+ "iopub.execute_input": "2026-11-25T00:56:32.604788Z",
584
+ "iopub.status.busy": "2026-11-25T00:56:32.603783Z",
585
+ "iopub.status.idle": "2026-11-25T00:56:32.882051Z",
586
+ "shell.execute_reply": "2026-11-25T00:56:32.880540Z"
587
587
  }
588
588
  },
589
589
  "outputs": [