pyTEMlib 0.2024.9.0__py3-none-any.whl → 0.2025.2.2__py3-none-any.whl

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.

pyTEMlib/animation.py CHANGED
@@ -386,7 +386,7 @@ def deficient_kikuchi_line(s_g=0., color_b='black'):
386
386
  plt.gca().add_patch(deviation_angle)
387
387
 
388
388
  plt.gca().set_aspect('equal')
389
- plt.gca().set_xlabel('angle (1/$\AA$)')
389
+ plt.gca().set_xlabel(r'angle (1/$\AA$)')
390
390
  plt.gca().set_ylim(-.1, k_0[1] * 2.2)
391
391
  plt.gca().set_xlim(-.2, 1.03)
392
392
 
pyTEMlib/atom_tools.py CHANGED
@@ -7,6 +7,7 @@ Author: Gerd Duscher
7
7
 
8
8
  part of pyTEMlib
9
9
 
10
+
10
11
  a pycroscopy package
11
12
  """
12
13
 
@@ -53,7 +54,7 @@ def find_atoms(image, atom_size=0.1, threshold=0.):
53
54
  if not isinstance(threshold, float):
54
55
  raise TypeError('threshold parameter has to be a float number')
55
56
 
56
- scale_x = ft.get_slope(image.dim_0)
57
+ scale_x = np.unique(np.gradient(image.dim_0.values))[0]
57
58
  im = np.array(image-image.min())
58
59
  im = im/im.max()
59
60
  if threshold <= 0.: