pyTEMlib 0.2025.4.1__tar.gz → 0.2025.4.2__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.

Potentially problematic release.


This version of pyTEMlib might be problematic. Click here for more details.

Files changed (45) hide show
  1. {pytemlib-0.2025.4.1/pyTEMlib.egg-info → pytemlib-0.2025.4.2}/PKG-INFO +1 -1
  2. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/image_tools.py +15 -2
  3. pytemlib-0.2025.4.2/pyTEMlib/version.py +6 -0
  4. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2/pyTEMlib.egg-info}/PKG-INFO +1 -1
  5. pytemlib-0.2025.4.1/pyTEMlib/version.py +0 -6
  6. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/LICENSE +0 -0
  7. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/MANIFEST.in +0 -0
  8. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/README.rst +0 -0
  9. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/__init__.py +0 -0
  10. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/animation.py +0 -0
  11. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/atom_tools.py +0 -0
  12. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/config_dir.py +0 -0
  13. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/core_loss_widget.py +0 -0
  14. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/crystal_tools.py +0 -0
  15. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/diffraction_plot.py +0 -0
  16. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/dynamic_scattering.py +0 -0
  17. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/eds_tools.py +0 -0
  18. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/eels_dialog.py +0 -0
  19. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/eels_dialog_utilities.py +0 -0
  20. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/eels_tools.py +0 -0
  21. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/file_tools.py +0 -0
  22. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/file_tools_qt.py +0 -0
  23. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/graph_tools.py +0 -0
  24. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/graph_viz.py +0 -0
  25. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/image_dialog.py +0 -0
  26. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/image_dlg.py +0 -0
  27. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/info_widget.py +0 -0
  28. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/info_widget3.py +0 -0
  29. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/interactive_image.py +0 -0
  30. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/kinematic_scattering.py +0 -0
  31. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/low_loss_widget.py +0 -0
  32. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/microscope.py +0 -0
  33. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/peak_dialog.py +0 -0
  34. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/peak_dlg.py +0 -0
  35. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/probe_tools.py +0 -0
  36. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/sidpy_tools.py +0 -0
  37. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/simulation_tools.py +0 -0
  38. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib/xrpa_x_sections.py +0 -0
  39. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib.egg-info/SOURCES.txt +0 -0
  40. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib.egg-info/dependency_links.txt +0 -0
  41. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib.egg-info/entry_points.txt +0 -0
  42. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib.egg-info/requires.txt +0 -0
  43. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/pyTEMlib.egg-info/top_level.txt +0 -0
  44. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/setup.cfg +0 -0
  45. {pytemlib-0.2025.4.1 → pytemlib-0.2025.4.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyTEMlib
3
- Version: 0.2025.4.1
3
+ Version: 0.2025.4.2
4
4
  Summary: pyTEM: TEM Data Quantification library through a model-based approach
5
5
  Home-page: https://pycroscopy.github.io/pyTEMlib/about.html
6
6
  Author: Gerd Duscher
@@ -639,8 +639,21 @@ def rigid_registration(dataset, normalization=None):
639
639
  normalization = None
640
640
 
641
641
  if dataset.get_dimensions_by_type('TEMPORAL')[0] != 0:
642
- raise TypeError('Image stack does not have correct frame dimension')
643
-
642
+ x = dataset.x
643
+ y = dataset.y
644
+ z = dataset.z
645
+ metadata = dataset.metadata.copy()
646
+ original_metadata = dataset.original_metadata.copy()
647
+ arr = np.rollaxis(np.array(dataset), 2, 0)
648
+ dataset = sidpy.Dataset.from_array(arr, title=dataset.title, data_type='IMAGE_STACK',
649
+ quantity=dataset.quantity, units=dataset.units)
650
+ dataset.set_dimension(0, sidpy.Dimension(z.values, name='frame', units='frame', quantity='time',
651
+ dimension_type='temporal'))
652
+ dataset.set_dimension(1, x)
653
+ dataset.set_dimension(2, y)
654
+ dataset.metadata = metadata
655
+ dataset.original_metadata = original_metadata
656
+
644
657
  stack_dim = dataset.get_dimensions_by_type('TEMPORAL', return_axis=True)[0]
645
658
  image_dim = dataset.get_image_dims(return_axis=True)
646
659
  if len(image_dim) != 2:
@@ -0,0 +1,6 @@
1
+ """
2
+ version
3
+ """
4
+ _version = '0.2025.04.2'
5
+ __version__ = _version
6
+ _time = '2025-05-26 19:58:26'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyTEMlib
3
- Version: 0.2025.4.1
3
+ Version: 0.2025.4.2
4
4
  Summary: pyTEM: TEM Data Quantification library through a model-based approach
5
5
  Home-page: https://pycroscopy.github.io/pyTEMlib/about.html
6
6
  Author: Gerd Duscher
@@ -1,6 +0,0 @@
1
- """
2
- version
3
- """
4
- _version = '0.2025.04.1'
5
- __version__ = _version
6
- _time = '2025-05-25 19:58:26'
File without changes
File without changes
File without changes
File without changes
File without changes