pyemaps 2.6.0__tar.gz → 2.7.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.6.0/pyemaps.egg-info → pyemaps-2.7.0}/PKG-INFO +2 -2
  2. {pyemaps-2.6.0 → pyemaps-2.7.0}/__init__.py +1 -1
  3. pyemaps-2.7.0/__version__.py +1 -0
  4. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/dpgen_dec.py +5 -1
  5. {pyemaps-2.6.0 → pyemaps-2.7.0}/dmreader.py +8 -2
  6. {pyemaps-2.6.0 → pyemaps-2.7.0}/emdreader.py +106 -11
  7. {pyemaps-2.6.0 → pyemaps-2.7.0}/expimage.py +90 -9
  8. {pyemaps-2.6.0 → pyemaps-2.7.0}/notebooks/adf.ipynb +47 -53
  9. {pyemaps-2.6.0 → pyemaps-2.7.0}/notebooks/al_ediom.ipynb +39 -39
  10. {pyemaps-2.6.0 → pyemaps-2.7.0}/notebooks/al_orientmap.ipynb +73 -79
  11. pyemaps-2.7.0/notebooks/powder.ipynb +526 -0
  12. pyemaps-2.7.0/notebooks/si_bloch.ipynb +844 -0
  13. {pyemaps-2.6.0 → pyemaps-2.7.0}/notebooks/si_constructor.ipynb +34 -34
  14. pyemaps-2.7.0/notebooks/si_csf.ipynb +835 -0
  15. pyemaps-2.7.0/notebooks/si_dif.ipynb +931 -0
  16. pyemaps-2.7.0/notebooks/si_lacbed.ipynb +789 -0
  17. {pyemaps-2.6.0 → pyemaps-2.7.0}/notebooks/si_scm.ipynb +58 -77
  18. pyemaps-2.7.0/notebooks/si_stereo.ipynb +501 -0
  19. {pyemaps-2.6.0 → pyemaps-2.7.0/pyemaps.egg-info}/PKG-INFO +2 -2
  20. {pyemaps-2.6.0 → pyemaps-2.7.0}/pyemaps.egg-info/requires.txt +1 -1
  21. pyemaps-2.7.0/readerbase.py +139 -0
  22. {pyemaps-2.6.0 → pyemaps-2.7.0}/setup.py +1 -1
  23. {pyemaps-2.6.0 → pyemaps-2.7.0}/stackimg.py +182 -21
  24. pyemaps-2.6.0/__version__.py +0 -1
  25. pyemaps-2.6.0/notebooks/powder.ipynb +0 -526
  26. pyemaps-2.6.0/notebooks/si_bloch.ipynb +0 -844
  27. pyemaps-2.6.0/notebooks/si_csf.ipynb +0 -835
  28. pyemaps-2.6.0/notebooks/si_dif.ipynb +0 -931
  29. pyemaps-2.6.0/notebooks/si_lacbed.ipynb +0 -795
  30. pyemaps-2.6.0/notebooks/si_stereo.ipynb +0 -501
  31. pyemaps-2.6.0/readerbase.py +0 -77
  32. {pyemaps-2.6.0 → pyemaps-2.7.0}/COPYING +0 -0
  33. {pyemaps-2.6.0 → pyemaps-2.7.0}/MANIFEST.in +0 -0
  34. {pyemaps-2.6.0 → pyemaps-2.7.0}/README.md +0 -0
  35. {pyemaps-2.6.0 → pyemaps-2.7.0}/__config__.py +0 -0
  36. {pyemaps-2.6.0 → pyemaps-2.7.0}/__main__.py +0 -0
  37. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Aluminium.xtl +0 -0
  38. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/AluminiumOxide.xtl +0 -0
  39. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Aluminium_FCC.xtl +0 -0
  40. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/BariumTitanate_180k.xtl +0 -0
  41. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/BariumTitanate_270k.xtl +0 -0
  42. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/BariumTitanate_Tetra.xtl +0 -0
  43. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/BiMnO3.xtl +0 -0
  44. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Boron_Tetra.xtl +0 -0
  45. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/CadmiumSelenide_Hex.xtl +0 -0
  46. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/CadmiumSulfide_Cubic.xtl +0 -0
  47. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/CadmiumSulfide_Hex.xtl +0 -0
  48. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Chromium_BCC.xtl +0 -0
  49. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/CoSb3_Skutterudite.xtl +0 -0
  50. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/CopperOxide.xtl +0 -0
  51. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Copper_FCC.xtl +0 -0
  52. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Cu2O_Cuprite.xtl +0 -0
  53. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Diamond.xtl +0 -0
  54. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/ErbiumPyrogermanate.xtl +0 -0
  55. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/FePd_Tetra.xtl +0 -0
  56. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/FeS2_Pyrite.xtl +0 -0
  57. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/GalliumAntimonide.xtl +0 -0
  58. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/GalliumArsenide.xtl +0 -0
  59. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/GalliumNitride.xtl +0 -0
  60. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Germanium.xtl +0 -0
  61. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Gold_FCC.xtl +0 -0
  62. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/IndiumArsenide.xtl +0 -0
  63. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/LaMnO3.xtl +0 -0
  64. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/LeadZirconateTitanate.xtl +0 -0
  65. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Li2MnO3.xtl +0 -0
  66. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/NaFeO2.xtl +0 -0
  67. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Nb3Sn.xtl +0 -0
  68. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Pentacene.xtl +0 -0
  69. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/SiAlONa.xtl +0 -0
  70. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Silicon.xtl +0 -0
  71. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/StrontiumTitanate.xtl +0 -0
  72. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/TelluriumDioxide.xtl +0 -0
  73. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/TinDioxide_RT.xtl +0 -0
  74. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/TitaniumDioxide_Anatase.xtl +0 -0
  75. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/TitaniumDioxide_Rutile.xtl +0 -0
  76. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/TungstenDiselenide.xtl +0 -0
  77. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/VanadiumDioxide_RT.xtl +0 -0
  78. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/ZincOxide.xtl +0 -0
  79. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/Zinc_HCP.xtl +0 -0
  80. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/ZirconiumNitride.xtl +0 -0
  81. {pyemaps-2.6.0 → pyemaps-2.7.0}/cdata/limno2.xtl +0 -0
  82. {pyemaps-2.6.0 → pyemaps-2.7.0}/cifreader.py +0 -0
  83. {pyemaps-2.6.0 → pyemaps-2.7.0}/crystals.py +0 -0
  84. {pyemaps-2.6.0 → pyemaps-2.7.0}/ddiffs.py +0 -0
  85. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/__init__.py +0 -0
  86. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/bloch_dec.py +0 -0
  87. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/csf_dec.py +0 -0
  88. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/dif_dec.py +0 -0
  89. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/mxtal_dec.py +0 -0
  90. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/powder_dec.py +0 -0
  91. {pyemaps-2.6.0 → pyemaps-2.7.0}/diffract/stereo_dec.py +0 -0
  92. {pyemaps-2.6.0 → pyemaps-2.7.0}/display.py +0 -0
  93. {pyemaps-2.6.0 → pyemaps-2.7.0}/emcontrols.py +0 -0
  94. {pyemaps-2.6.0 → pyemaps-2.7.0}/errors.py +0 -0
  95. {pyemaps-2.6.0 → pyemaps-2.7.0}/fileutils.py +0 -0
  96. {pyemaps-2.6.0 → pyemaps-2.7.0}/kdiffs.py +0 -0
  97. {pyemaps-2.6.0 → pyemaps-2.7.0}/license-exception.txt +0 -0
  98. {pyemaps-2.6.0 → pyemaps-2.7.0}/license.txt +0 -0
  99. {pyemaps-2.6.0 → pyemaps-2.7.0}/mibreader.py +0 -0
  100. {pyemaps-2.6.0 → pyemaps-2.7.0}/mrcreader.py +0 -0
  101. {pyemaps-2.6.0 → pyemaps-2.7.0}/orientmap.py +0 -0
  102. {pyemaps-2.6.0 → pyemaps-2.7.0}/picreader.py +0 -0
  103. {pyemaps-2.6.0 → pyemaps-2.7.0}/pyemaps.egg-info/SOURCES.txt +0 -0
  104. {pyemaps-2.6.0 → pyemaps-2.7.0}/pyemaps.egg-info/dependency_links.txt +0 -0
  105. {pyemaps-2.6.0 → pyemaps-2.7.0}/pyemaps.egg-info/entry_points.txt +0 -0
  106. {pyemaps-2.6.0 → pyemaps-2.7.0}/pyemaps.egg-info/top_level.txt +0 -0
  107. {pyemaps-2.6.0 → pyemaps-2.7.0}/pyproject.toml +0 -0
  108. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/adf.py +0 -0
  109. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/al.img +0 -0
  110. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/al_dpgen.py +0 -0
  111. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/al_ediom.py +0 -0
  112. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/al_orientmap.py +0 -0
  113. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/convert_image.py +0 -0
  114. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/dm_diff.py +0 -0
  115. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/mask.im3 +0 -0
  116. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/powder.py +0 -0
  117. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/raw.img +0 -0
  118. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_bloch.py +0 -0
  119. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_constructor.py +0 -0
  120. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_csf.py +0 -0
  121. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_dif.py +0 -0
  122. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_lacbed.py +0 -0
  123. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_pyemaps.py +0 -0
  124. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_scm.py +0 -0
  125. {pyemaps-2.6.0 → pyemaps-2.7.0}/samples/si_stereo.py +0 -0
  126. {pyemaps-2.6.0 → pyemaps-2.7.0}/scattering/__init__.py +0 -0
  127. {pyemaps-2.6.0 → pyemaps-2.7.0}/scattering/sct_dec.py +0 -0
  128. {pyemaps-2.6.0 → pyemaps-2.7.0}/setup.cfg +0 -0
  129. {pyemaps-2.6.0 → pyemaps-2.7.0}/spg/__init__.py +0 -0
  130. {pyemaps-2.6.0 → pyemaps-2.7.0}/spg/spg_dec.py +0 -0
  131. {pyemaps-2.6.0 → pyemaps-2.7.0}/tiffreader.py +0 -0
  132. {pyemaps-2.6.0 → pyemaps-2.7.0}/xtal.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyemaps
3
- Version: 2.6.0
3
+ Version: 2.7.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.3.0
27
+ Requires-Dist: emaps>=2.4.0
28
28
  Requires-Dist: numpy>=2.0
29
29
  Requires-Dist: matplotlib>=3.8.4
30
30
  Provides-Extra: emd
@@ -168,7 +168,7 @@ except ImportError as e:
168
168
  from .display import showDif, showBloch, showStereo, plot2Powder
169
169
 
170
170
  #--------------Experimental images from image files (TIFF, .im3)--------------------
171
- from .expimage import read_image, write_im3, image_readers, ExperimentalImage
171
+ from .expimage import read_image, write_im3, image_readers, image_datasets, ExperimentalImage
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
@@ -0,0 +1 @@
1
+ __version__ = "2.7.0"
@@ -64,7 +64,11 @@ def add_dpgen(target):
64
64
  :ref:`Environment Variables <Environment Variables>`.
65
65
 
66
66
  :param emc: microscope and simulation controls. Its accelerating voltage, zone axis and
67
- simulation controls are used.
67
+ simulation controls are used. For 4D-STEM indexing, the simulation controls' *gmax*
68
+ must reach as far out as the experimental peaks used: at least their outer radius
69
+ in pixels divided by the camera constant, in 1/Å (see
70
+ :py:meth:`~pyemaps.stackimg.StackImage.indexImage`). The default, 3.5, covers most
71
+ patterns; a smaller one leaves out reflections and tilted orientations index worse.
68
72
  :type emc: :py:class:`~pyemaps.emcontrols.EMControl`, optional
69
73
  :param xa: the crystal's horizontal axis, as three integers. Defaults to ``(0, 0, 0)``,
70
74
  which lets the backend choose it.
@@ -26,6 +26,8 @@ import struct
26
26
 
27
27
  import numpy as np
28
28
 
29
+ from .readerbase import calibration_kind, default_dataset
30
+
29
31
 
30
32
  class DMError(ValueError):
31
33
  '''A file that isn't a DigitalMicrograph file this reader can read, with the reason.'''
@@ -208,10 +210,12 @@ class DMFile:
208
210
  def choose(self, dataset=None):
209
211
  '''
210
212
  The image to read: *dataset* (its number in :py:attr:`datasets`, or its name), or by
211
- default the one with the most patterns, the first of them on a tie.
213
+ default as :py:func:`~pyemaps.readerbase.default_dataset` chooses: diffraction patterns
214
+ first, then the one with the most patterns, passing over single images that are all
215
+ zero while another image is left.
212
216
  '''
213
217
  if dataset is None:
214
- return max(self.datasets, key=lambda d: d.npatterns)
218
+ return default_dataset(self.datasets)
215
219
  if isinstance(dataset, (int, np.integer)) and not isinstance(dataset, bool):
216
220
  if not 0 <= dataset < len(self.datasets):
217
221
  raise DMError(f'dataset must be 0 to {len(self.datasets) - 1} for {self.path}, '
@@ -363,6 +367,8 @@ class _Dataset:
363
367
  self.metadata = metadata
364
368
  self._read = read
365
369
  self.npatterns = npatterns
370
+ # diffraction patterns are calibrated in reciprocal lengths, images in lengths
371
+ self.kind = calibration_kind(axes)
366
372
 
367
373
  def read(self, indices):
368
374
  '''Patterns *indices* (in scan order, ascending), as ``(n, rows, columns)``.'''
@@ -13,8 +13,10 @@ extension.
13
13
 
14
14
  - **Thermo Fisher Velox** files: the images and image series Velox saves, such as diffraction
15
15
  patterns, with the microscope settings it records for each frame (high voltage, camera
16
- length, detector, pixel size …). Spectra in the same file (EDS, EELS) aren't images, and are
17
- skipped.
16
+ length, detector, pixel size …) and the title Velox displays each image under. Spectra in
17
+ the same file (EDS, EELS) aren't images, and are skipped. The elemental maps Velox computes
18
+ from a spectrum image are images, but not diffraction patterns, so the default choice takes
19
+ them last.
18
20
  - **Berkeley EMD** files (the open EMD format of the National Center for Electron Microscopy,
19
21
  versions 0.x and 1.0), including the 4D-STEM datacubes of py4DSTEM: arrays whose last two
20
22
  axes are the pattern, with the calibration of every axis.
@@ -28,6 +30,8 @@ import json
28
30
 
29
31
  import numpy as np
30
32
 
33
+ from .readerbase import SPECTRUM_MAP, calibration_kind, default_dataset
34
+
31
35
  INSTALL_HINT = 'pip install "pyemaps[emd]"'
32
36
 
33
37
  # Velox data kinds that hold spectra or text rather than images
@@ -73,7 +77,8 @@ class EmdDataset:
73
77
  without reading the pixels.
74
78
  '''
75
79
 
76
- def __init__(self, name, nav_shape, pattern_shape, dtype, axes, metadata, read):
80
+ def __init__(self, name, nav_shape, pattern_shape, dtype, axes, metadata, read, title=None,
81
+ spectrum_map=None):
77
82
  self.name = name # the dataset's path in the file
78
83
  self.nav_shape = tuple(nav_shape) # () for one pattern
79
84
  self.pattern_shape = tuple(pattern_shape)
@@ -81,6 +86,10 @@ class EmdDataset:
81
86
  self.axes = axes # [rows, columns]: name, scale, offset, units
82
87
  self.metadata = metadata
83
88
  self._read = read
89
+ self.title = title # Velox: the title it displays the image under
90
+ self.spectrum_map = spectrum_map # Velox: 'EELS', 'EDS' or 'spectrum' for a map of a spectrum image
91
+ # diffraction patterns are calibrated in reciprocal lengths, images in lengths
92
+ self.kind = SPECTRUM_MAP if spectrum_map else calibration_kind(axes)
84
93
 
85
94
  @property
86
95
  def npatterns(self):
@@ -92,7 +101,11 @@ class EmdDataset:
92
101
 
93
102
  def describe(self):
94
103
  scan = ' x '.join(str(n) for n in self.nav_shape) or 'one'
95
- return (f'{self.name}: {scan} pattern(s) of {self.pattern_shape[0]} x '
104
+ label = ''
105
+ if self.title:
106
+ kind = f', {self.spectrum_map} map' if self.spectrum_map else ''
107
+ label = f' ({self.title}{kind})'
108
+ return (f'{self.name}{label}: {scan} pattern(s) of {self.pattern_shape[0]} x '
96
109
  f'{self.pattern_shape[1]} {self.dtype}')
97
110
 
98
111
 
@@ -141,11 +154,14 @@ class EmdFile:
141
154
 
142
155
  def choose(self, dataset=None):
143
156
  '''
144
- The dataset to read: *dataset* (its number in :py:attr:`datasets`, or its name), or
145
- by default the one with the most patterns, the first of them on a tie.
157
+ The dataset to read: *dataset* (its number in :py:attr:`datasets`, its name, or for a
158
+ Velox file the title Velox displays it under, such as ``'DF-S'``), or by default as
159
+ :py:func:`~pyemaps.readerbase.default_dataset` chooses: diffraction patterns first,
160
+ Velox's elemental maps last, then the one with the most patterns, passing over single
161
+ images that are all zero while another dataset is left.
146
162
  '''
147
163
  if dataset is None:
148
- return max(self.datasets, key=lambda d: d.npatterns)
164
+ return default_dataset(self.datasets)
149
165
  if isinstance(dataset, (int, np.integer)) and not isinstance(dataset, bool):
150
166
  if not 0 <= dataset < len(self.datasets):
151
167
  raise EmdError(f'dataset must be 0 to {len(self.datasets) - 1} for {self.path}, '
@@ -154,6 +170,9 @@ class EmdFile:
154
170
  for d in self.datasets:
155
171
  if d.name == dataset or d.name.split('/')[-1] == dataset:
156
172
  return d
173
+ for d in self.datasets:
174
+ if d.title is not None and d.title == dataset:
175
+ return d
157
176
  raise EmdError(f'No image dataset {dataset!r} in {self.path}; it has: '
158
177
  + '; '.join(d.describe() for d in self.datasets))
159
178
 
@@ -170,6 +189,7 @@ class EmdFile:
170
189
 
171
190
  def _velox(self):
172
191
  data = self._f['Data']
192
+ titles = _velox_titles(self._f)
173
193
  for kind in data:
174
194
  if kind != VELOX_IMAGE:
175
195
  self.skipped.append(f'Velox {kind} (not images)')
@@ -184,11 +204,14 @@ class EmdFile:
184
204
  continue
185
205
  rows, cols, frames = (int(n) for n in ds.shape)
186
206
  md = _velox_metadata(g)
207
+ title, display_id = titles.get(uid, (None, None))
208
+ smap = _velox_spectrum_map(display_id, md)
187
209
  self.datasets.append(EmdDataset(
188
210
  name=f'Data/{kind}/{uid}', nav_shape=(frames,) if frames > 1 else (),
189
211
  pattern_shape=(rows, cols), dtype=ds.dtype, axes=_velox_axes(md),
190
- metadata=_velox_summary(md, uid),
191
- read=lambda idx, ds=ds: np.moveaxis(ds[:, :, _index(idx)], 2, 0)))
212
+ metadata=_velox_summary(md, uid, title, smap),
213
+ read=lambda idx, ds=ds: np.moveaxis(ds[:, :, _index(idx)], 2, 0),
214
+ title=title, spectrum_map=smap))
192
215
 
193
216
  # ------------------------------------------------------------------ Berkeley EMD
194
217
 
@@ -335,6 +358,78 @@ def _dim_axis(d, default):
335
358
  return axis
336
359
 
337
360
 
361
+ def _json(ds):
362
+ '''A JSON text stored in an HDF5 dataset (a string, or bytes as Velox writes them), or None.'''
363
+ try:
364
+ v = ds[()]
365
+ if isinstance(v, np.ndarray) and v.dtype.kind == 'O':
366
+ v = v.ravel()[0] if v.size else ''
367
+ return json.loads(_text(v))
368
+ except (ValueError, TypeError, IndexError, AttributeError, OSError):
369
+ return None
370
+
371
+
372
+ def _velox_titles(f):
373
+ '''
374
+ The title and id Velox displays each image under, by image id. Velox records its displays
375
+ in Displays/ImageDisplay: each refers to an entry of
376
+ SharedProperties/ImageSeriesDataReference, which gives the image's path, Data/Image/<id>.
377
+ Files without displays give no titles.
378
+ '''
379
+ out = {}
380
+ try:
381
+ displays = f['Displays/ImageDisplay']
382
+ items = [displays[k] for k in displays]
383
+ except (KeyError, TypeError, AttributeError, OSError):
384
+ return out
385
+ for item in items:
386
+ disp = _json(item) if not hasattr(item, 'keys') else None
387
+ if not isinstance(disp, dict) or not isinstance(disp.get('data'), str):
388
+ continue
389
+ try:
390
+ ref = f[disp['data']]
391
+ except (KeyError, ValueError, TypeError, OSError):
392
+ continue
393
+ target = _json(ref) if not hasattr(ref, 'keys') else None
394
+ path = target.get('dataPath') if isinstance(target, dict) else None
395
+ if not isinstance(path, str):
396
+ continue
397
+ uid = path.rstrip('/').split('/')[-1]
398
+ display_id = str(disp.get('id') or '')
399
+ title = str(disp.get('title') or display_id)
400
+ if uid and title and uid not in out:
401
+ out[uid] = (title, display_id)
402
+ return out
403
+
404
+
405
+ def _velox_spectrum_map(display_id, md=None):
406
+ '''
407
+ For an image Velox computed from a spectrum image, such as an elemental map: 'EELS' or
408
+ 'EDS' when its display id says which (Velox gives EELS maps ids like "Ta-EELS"), else
409
+ 'spectrum' when the detector that recorded it is one of the file's analytical detectors
410
+ (a spectrometer: Velox gives EDS maps ids like "b", but their detector, such as "UltraX",
411
+ names the EDS detectors "UltraX1" ... "UltraX6"). None for any other image.
412
+ '''
413
+ if display_id:
414
+ upper = display_id.upper()
415
+ for kind in ('EELS', 'EDS'):
416
+ if upper.endswith('-' + kind):
417
+ return kind
418
+ if not isinstance(md, dict):
419
+ return None
420
+ br = md.get('BinaryResult')
421
+ det = br.get('Detector') if isinstance(br, dict) else None
422
+ dets = md.get('Detectors')
423
+ if not isinstance(det, str) or not det or not isinstance(dets, dict):
424
+ return None
425
+ for d in dets.values():
426
+ if isinstance(d, dict) and d.get('DetectorType') == 'AnalyticalDetector':
427
+ name = d.get('DetectorName')
428
+ if isinstance(name, str) and name.startswith(det):
429
+ return 'spectrum'
430
+ return None
431
+
432
+
338
433
  def _velox_metadata(g):
339
434
  '''The first frame's metadata, a JSON text stored as bytes in column 0 of "Metadata".'''
340
435
  if 'Metadata' not in g:
@@ -366,14 +461,14 @@ def _velox_axes(md):
366
461
  return out
367
462
 
368
463
 
369
- def _velox_summary(md, uid):
464
+ def _velox_summary(md, uid, title=None, spectrum_map=None):
370
465
  '''The settings that matter for diffraction, plus the full metadata under "velox".'''
371
466
  optics = md.get('Optics', {}) if isinstance(md, dict) else {}
372
467
  br = md.get('BinaryResult', {}) if isinstance(md, dict) else {}
373
468
  inst = md.get('Instrument', {}) if isinstance(md, dict) else {}
374
469
  kv = _float(optics.get('AccelerationVoltage'))
375
470
  cl = _float(optics.get('CameraLength'))
376
- return {'format': 'Velox', 'dataset': uid,
471
+ return {'format': 'Velox', 'dataset': uid, 'title': title, 'spectrum_map': spectrum_map,
377
472
  'high_voltage_kV': kv / 1000 if kv else None,
378
473
  'camera_length_m': cl,
379
474
  'detector': br.get('Detector'),
@@ -24,8 +24,10 @@ Read experimental diffraction patterns from image files.
24
24
  with their calibration. EMD files need the h5py package: ``pip install "pyemaps[emd]"``;
25
25
  - pyEMAPS' own small-header files (``.im3``, ``.img``).
26
26
 
27
- It returns the patterns as numpy arrays, with the scan shape. pyEMAPS reads all of these
28
- itself, except EMD, with no other package. Reading files needs no license; analysing
27
+ It returns the patterns as numpy arrays, with the scan shape. :py:func:`image_datasets` lists
28
+ the images in a file without reading them, with the kind of each: diffraction patterns, which
29
+ pyEMAPS indexes, real-space images such as STEM images, or maps computed from a spectrum image.
30
+ pyEMAPS reads all of these itself, except EMD, with no other package. Reading files needs no license; analysing
29
31
  them with the 4D-STEM features does (see
30
32
  :py:meth:`StackImage.from_file <pyemaps.stackimg.StackImage.from_file>`).
31
33
 
@@ -38,6 +40,7 @@ import os
38
40
  import numpy as np
39
41
 
40
42
  from . import dmreader, emdreader, mibreader, mrcreader, picreader, tiffreader
43
+ from .readerbase import UNKNOWN
41
44
 
42
45
  # pyEMAPS small-header files: an 8-byte header of four little-endian shorts (width, height,
43
46
  # number of patterns, data type), then the patterns, row by row. Data types above 10 are
@@ -57,13 +60,27 @@ class ExperimentalImage:
57
60
  Experimental diffraction patterns read from a file by :py:func:`read_image`: one pattern,
58
61
  or a stack of them, one per scan position.
59
62
  '''
60
- def __init__(self, data, scan_shape, reader, axes, metadata, source):
63
+ def __init__(self, data, scan_shape, reader, axes, metadata, source, kind=UNKNOWN):
61
64
  self._data = data
62
65
  self._scan_shape = tuple(scan_shape)
63
66
  self._reader = reader
64
67
  self._axes = axes
65
68
  self._metadata = metadata
66
69
  self._source = source
70
+ self._kind = kind
71
+
72
+ @property
73
+ def kind(self):
74
+ '''
75
+ What the file says these images are: ``'diffraction'`` for diffraction patterns, which
76
+ the 4D-STEM features index (calibrated in reciprocal lengths or angles, such as 1/nm or
77
+ mrad); ``'real-space'`` for images of the sample, such as STEM images (calibrated in
78
+ lengths, such as nm); ``'spectrum map'`` for a map Velox computed from a spectrum image,
79
+ such as an elemental map; ``'unknown'`` when the file doesn't tell, as for TIFF, MRC,
80
+ Merlin, picture, NumPy and pyEMAPS files, and for DigitalMicrograph and EMD images
81
+ without a calibration.
82
+ '''
83
+ return self._kind
67
84
 
68
85
  @property
69
86
  def data(self):
@@ -117,7 +134,10 @@ class ExperimentalImage:
117
134
  by name (``ImageDescription``, ``Software``, ``DateTime`` …), the ``compression``,
118
135
  and ``imagej`` or ``shaped`` with the settings ImageJ or tifffile recorded. For Velox
119
136
  files: ``high_voltage_kV``, ``camera_length_m``, ``detector`` and ``instrument``,
120
- and the full metadata of the first frame under ``velox``. For Berkeley EMD files:
137
+ the ``title`` Velox shows the image under, ``spectrum_map`` (for a map computed from a
138
+ spectrum image, such as an elemental map: ``'EELS'`` or ``'EDS'``, or ``'spectrum'`` when
139
+ the file doesn't say which; else None), and the full metadata
140
+ of the first frame under ``velox``. For Berkeley EMD files:
121
141
  the ``format``, the ``dataset`` and its ``attributes``, and the ``scan_axes``. For
122
142
  DigitalMicrograph files: ``high_voltage_kV`` and ``camera_length_mm`` when recorded,
123
143
  ``scan_axes``, the image's ``name``, and its tags under ``tags``. For MRC files: the
@@ -134,9 +154,10 @@ class ExperimentalImage:
134
154
  return self._source
135
155
 
136
156
  def __repr__(self):
157
+ kind = f', {self._kind}' if self._kind != UNKNOWN else ''
137
158
  return (f'ExperimentalImage({os.path.basename(self._source)!r}: {self.npatterns} '
138
159
  f'pattern(s) of {self.pattern_shape[0]} x {self.pattern_shape[1]}, '
139
- f'scan {self._scan_shape}, {self._data.dtype}, read by {self._reader})')
160
+ f'scan {self._scan_shape}, {self._data.dtype}, read by {self._reader}{kind})')
140
161
 
141
162
 
142
163
  def image_readers():
@@ -173,8 +194,13 @@ def read_image(path, reader=None, binning=1, scan_roi=None, scan_shape=None, dat
173
194
  shape the file recorded, or else a series of patterns.
174
195
  :type scan_shape: tuple of int, optional
175
196
  :param dataset: for a DigitalMicrograph or EMD file with several images, the one to read:
176
- its number, counting from 0, or its name in the file. By default, the one with the most
177
- patterns, such as the 4D-STEM scan rather than an overview image.
197
+ its number, counting from 0, its name in the file, or for a Velox file the title Velox
198
+ shows it under, such as ``'DF-S'``. By default, diffraction patterns before images of
199
+ unknown kind, real-space images and Velox's elemental maps (see
200
+ :py:attr:`ExperimentalImage.kind`), and among those the one with the most patterns,
201
+ such as the 4D-STEM scan rather than an overview image, passing over single images that
202
+ are all zero unless nothing else is left. :py:func:`image_datasets` lists a file's
203
+ images; so does the error for a dataset the file doesn't have.
178
204
  :type dataset: int or str, optional
179
205
  :return: the patterns.
180
206
  :rtype: ExperimentalImage
@@ -196,6 +222,7 @@ def read_image(path, reader=None, binning=1, scan_roi=None, scan_shape=None, dat
196
222
  raise ValueError(f'dataset is for files with several images, such as DigitalMicrograph '
197
223
  f'and EMD files; {path} is read by the {name} reader')
198
224
  calibration = None
225
+ kind = UNKNOWN
199
226
  if name == 'TIFF':
200
227
  with tiffreader.TiffFile(path) as tif:
201
228
  nav = _scan_shape(scan_shape, tif.npages, tif.scan_shape, path)
@@ -208,7 +235,7 @@ def read_image(path, reader=None, binning=1, scan_roi=None, scan_shape=None, dat
208
235
  nav = _scan_shape(scan_shape, ds.npatterns, ds.nav_shape, path)
209
236
  pages, nav = _roi_pages(nav, scan_roi)
210
237
  stack = ds.read(pages)
211
- metadata, calibration = ds.metadata, ds.axes
238
+ metadata, calibration, kind = ds.metadata, ds.axes, ds.kind
212
239
  else:
213
240
  data = _read_small_header(path)
214
241
  stack = data.reshape(-1, *data.shape[-2:])
@@ -233,7 +260,61 @@ def read_image(path, reader=None, binning=1, scan_roi=None, scan_shape=None, dat
233
260
  axes.append({'name': c.get('name', axis), 'size': size,
234
261
  'scale': float(c.get('scale', 1.0)) * binning,
235
262
  'offset': float(c.get('offset', 0.0)), 'units': c.get('units', '')})
236
- return ExperimentalImage(np.ascontiguousarray(stack), nav, name, axes, metadata, path)
263
+ return ExperimentalImage(np.ascontiguousarray(stack), nav, name, axes, metadata, path, kind)
264
+
265
+
266
+ def image_datasets(path, reader=None):
267
+ '''
268
+ The images in a file, without reading their pixels: to see whether it holds diffraction
269
+ patterns, and which image :py:func:`read_image` reads by default.
270
+
271
+ :param path: the file, in any format :py:func:`read_image` reads.
272
+ :type path: str or os.PathLike
273
+ :param reader: the reader to use whatever the file's extension; see :py:func:`image_readers`.
274
+ :type reader: str, optional
275
+ :return: one dictionary per image, in the file's order: its ``dataset`` number (for
276
+ :py:func:`read_image`'s *dataset*), ``name``, ``title`` (the title Velox shows it
277
+ under, else None), ``kind`` (see :py:attr:`ExperimentalImage.kind`), ``scan_shape``
278
+ as the file records it, ``npatterns``, ``pattern_shape``, ``dtype``, and ``default``,
279
+ True for the image :py:func:`read_image` reads when no *dataset* is given.
280
+ :rtype: list of dict
281
+ :raise FileNotFoundError: if the file doesn't exist.
282
+ :raise ImportError: for an EMD file, if h5py isn't installed.
283
+ :raise ValueError: if the file isn't one these readers read.
284
+
285
+ For a DigitalMicrograph or EMD file with several images, telling the default reads the
286
+ single images that are candidates for it, to pass over those that are all zero.
287
+ '''
288
+ path = os.fspath(path)
289
+ if not os.path.isfile(path):
290
+ raise FileNotFoundError(f'Image file not found: {path}')
291
+ name = _choose_reader(path, reader)
292
+ out = []
293
+ if name == 'TIFF':
294
+ with tiffreader.TiffFile(path) as tif:
295
+ out.append(_describe(0, os.path.basename(path), None, UNKNOWN, tif.scan_shape,
296
+ tif.npages, tif.shape, tif.dtype, True))
297
+ elif name in OPENERS:
298
+ with OPENERS[name](path) as f:
299
+ chosen = f.choose(None)
300
+ for k, d in enumerate(f.datasets):
301
+ out.append(_describe(k, d.name, getattr(d, 'title', None),
302
+ getattr(d, 'kind', UNKNOWN), d.nav_shape, d.npatterns,
303
+ d.pattern_shape, d.dtype, d is chosen))
304
+ else:
305
+ data = _read_small_header(path)
306
+ n = data.shape[0] if data.ndim == 3 else 1
307
+ out.append(_describe(0, os.path.basename(path), None, UNKNOWN,
308
+ (n,) if data.ndim == 3 else (), n, data.shape[-2:], data.dtype, True))
309
+ del data
310
+ return out
311
+
312
+
313
+ def _describe(k, name, title, kind, scan_shape, npatterns, pattern_shape, dtype, default):
314
+ return {'dataset': k, 'name': name, 'title': title, 'kind': kind,
315
+ 'scan_shape': tuple(int(n) for n in scan_shape), 'npatterns': int(npatterns),
316
+ 'pattern_shape': tuple(int(n) for n in pattern_shape), 'dtype': str(np.dtype(dtype)),
317
+ 'default': bool(default)}
237
318
 
238
319
 
239
320
  def write_im3(path, data):
@@ -53,10 +53,10 @@
53
53
  "id": "4c5b4764",
54
54
  "metadata": {
55
55
  "execution": {
56
- "iopub.execute_input": "2026-11-14T10:31:46.392136Z",
57
- "iopub.status.busy": "2026-11-14T10:31:46.390590Z",
58
- "iopub.status.idle": "2026-11-14T10:31:49.450088Z",
59
- "shell.execute_reply": "2026-11-14T10:31:49.449075Z"
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"
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.2.0\n",
67
+ "pyEMAPS 2.6.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-14T10:31:49.453738Z",
117
- "iopub.status.busy": "2026-11-14T10:31:49.452716Z",
118
- "iopub.status.idle": "2026-11-14T10:31:50.507922Z",
119
- "shell.execute_reply": "2026-11-14T10:31:50.506915Z"
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"
120
120
  }
121
121
  },
122
122
  "outputs": [
@@ -176,10 +176,10 @@
176
176
  "id": "eb3bfbfa",
177
177
  "metadata": {
178
178
  "execution": {
179
- "iopub.execute_input": "2026-11-14T10:31:50.510959Z",
180
- "iopub.status.busy": "2026-11-14T10:31:50.509926Z",
181
- "iopub.status.idle": "2026-11-14T10:31:50.516503Z",
182
- "shell.execute_reply": "2026-11-14T10:31:50.515957Z"
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"
183
183
  }
184
184
  },
185
185
  "outputs": [
@@ -219,10 +219,10 @@
219
219
  "id": "e4915e84",
220
220
  "metadata": {
221
221
  "execution": {
222
- "iopub.execute_input": "2026-11-14T10:31:50.519509Z",
223
- "iopub.status.busy": "2026-11-14T10:31:50.519509Z",
224
- "iopub.status.idle": "2026-11-14T10:31:51.335352Z",
225
- "shell.execute_reply": "2026-11-14T10:31:51.334346Z"
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"
226
226
  }
227
227
  },
228
228
  "outputs": [
@@ -281,10 +281,10 @@
281
281
  "id": "a39bb41a",
282
282
  "metadata": {
283
283
  "execution": {
284
- "iopub.execute_input": "2026-11-14T10:31:51.340381Z",
285
- "iopub.status.busy": "2026-11-14T10:31:51.340381Z",
286
- "iopub.status.idle": "2026-11-14T10:31:51.355097Z",
287
- "shell.execute_reply": "2026-11-14T10:31:51.353566Z"
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"
288
288
  }
289
289
  },
290
290
  "outputs": [
@@ -345,10 +345,10 @@
345
345
  "id": "e4e86718",
346
346
  "metadata": {
347
347
  "execution": {
348
- "iopub.execute_input": "2026-11-14T10:31:51.358736Z",
349
- "iopub.status.busy": "2026-11-14T10:31:51.357793Z",
350
- "iopub.status.idle": "2026-11-14T10:31:52.907197Z",
351
- "shell.execute_reply": "2026-11-14T10:31:52.906687Z"
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"
352
352
  }
353
353
  },
354
354
  "outputs": [
@@ -363,13 +363,7 @@
363
363
  "name": "stdout",
364
364
  "output_type": "stream",
365
365
  "text": [
366
- "Annular dark field: status 0, image 30 x 30\n"
367
- ]
368
- },
369
- {
370
- "name": "stdout",
371
- "output_type": "stream",
372
- "text": [
366
+ "Annular dark field: status 0, image 30 x 30\n",
373
367
  "Dark field: status 0, image 30 x 30\n"
374
368
  ]
375
369
  }
@@ -403,10 +397,10 @@
403
397
  "id": "b450cfa7",
404
398
  "metadata": {
405
399
  "execution": {
406
- "iopub.execute_input": "2026-11-14T10:31:52.910197Z",
407
- "iopub.status.busy": "2026-11-14T10:31:52.910197Z",
408
- "iopub.status.idle": "2026-11-14T10:31:53.560584Z",
409
- "shell.execute_reply": "2026-11-14T10:31:53.559578Z"
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"
410
404
  }
411
405
  },
412
406
  "outputs": [
@@ -477,10 +471,10 @@
477
471
  "id": "a8027cab",
478
472
  "metadata": {
479
473
  "execution": {
480
- "iopub.execute_input": "2026-11-14T10:31:53.562623Z",
481
- "iopub.status.busy": "2026-11-14T10:31:53.562623Z",
482
- "iopub.status.idle": "2026-11-14T10:31:53.782441Z",
483
- "shell.execute_reply": "2026-11-14T10:31:53.780428Z"
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"
484
478
  }
485
479
  },
486
480
  "outputs": [
@@ -526,10 +520,10 @@
526
520
  "id": "1714a70a",
527
521
  "metadata": {
528
522
  "execution": {
529
- "iopub.execute_input": "2026-11-14T10:31:53.786451Z",
530
- "iopub.status.busy": "2026-11-14T10:31:53.785435Z",
531
- "iopub.status.idle": "2026-11-14T10:31:54.397851Z",
532
- "shell.execute_reply": "2026-11-14T10:31:54.396844Z"
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"
533
527
  }
534
528
  },
535
529
  "outputs": [
@@ -590,10 +584,10 @@
590
584
  "id": "e5a3d64f",
591
585
  "metadata": {
592
586
  "execution": {
593
- "iopub.execute_input": "2026-11-14T10:31:54.400891Z",
594
- "iopub.status.busy": "2026-11-14T10:31:54.400891Z",
595
- "iopub.status.idle": "2026-11-14T10:31:55.040911Z",
596
- "shell.execute_reply": "2026-11-14T10:31:55.039905Z"
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"
597
591
  }
598
592
  },
599
593
  "outputs": [
@@ -601,7 +595,7 @@
601
595
  "name": "stdout",
602
596
  "output_type": "stream",
603
597
  "text": [
604
- "The numpy image was successfully converted to pyEMAPS image format and saved as C:\\pyemaps_data\\sh_converted\\numpy_image_20261114_213154.im3\n"
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"
605
599
  ]
606
600
  },
607
601
  {
@@ -653,10 +647,10 @@
653
647
  "id": "7a93969a",
654
648
  "metadata": {
655
649
  "execution": {
656
- "iopub.execute_input": "2026-11-14T10:31:55.043929Z",
657
- "iopub.status.busy": "2026-11-14T10:31:55.043425Z",
658
- "iopub.status.idle": "2026-11-14T10:31:55.160556Z",
659
- "shell.execute_reply": "2026-11-14T10:31:55.159546Z"
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"
660
654
  }
661
655
  },
662
656
  "outputs": [