Skip to content

Commit 37655a4

Browse files
committed
fixed atom_tools
1 parent d67c9ce commit 37655a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyTEMlib/atom_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def find_atoms(image, atom_size=0.1, threshold=0.):
5353
if not isinstance(threshold, float):
5454
raise TypeError('threshold parameter has to be a float number')
5555

56-
scale_x = ft.get_slope(image.dim_0)
56+
scale_x = np.unique(np.gradient(image.dim_0.values))[0]
5757
im = np.array(image-image.min())
5858
im = im/im.max()
5959
if threshold <= 0.:

0 commit comments

Comments
 (0)