Skip to content

Commit d550629

Browse files
committed
Update eds_tools.py
1 parent 3690012 commit d550629

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyTEMlib/eds_tools/eds_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ def residuals(pp, yy):
487487
y = np.array(spectrum) # .compute()
488488
[p, _] = scipy.optimize.leastsq(residuals, pin, args=(y,), maxfev=10000)
489489

490-
update_fit_values(spectrum.metadata['EDS'], peaks, np,abs(p)
491-
return np.array(peaks), np.abs(p)
490+
update_fit_values(spectrum.metadata['EDS'], peaks, np,abs(p))
491+
return np.array(peaks), np.abs(p))
492492

493493

494494
def update_fit_values(out_tags, peaks, p):

0 commit comments

Comments
 (0)