Skip to content

Commit

Permalink
Changing from tuple return to np.array return
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Feb 28, 2018
1 parent bad56c3 commit 8854090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxem/utils/expt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def subpixel_beam_finder(single_pattern,half_shape):
x_center = cf(_capped_gaussian,i_array,np.ravel(pattern[size:size+3,:].T),p0=[2,5,hs])[0][2]
y_center = cf(_capped_gaussian,i_array,np.ravel(pattern[:,size:size+3].T),p0=[2,5,hs])[0][2]

return (x_center,y_center)
return np.asarray([x_center,y_center])


def enhance_gauss_sauvola(z, sigma_blur, sigma_enhance, k, window_size, threshold, morph_opening=True):
Expand Down

0 comments on commit 8854090

Please sign in to comment.