Skip to content

Commit cd4f2eb

Browse files
committed
update
1 parent c8e6c98 commit cd4f2eb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

notebooks/Spectroscopy/EDS.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"name": "stdout",
105105
"output_type": "stream",
106106
"text": [
107-
"pyTEM version: 0.2026.1.3\n"
107+
"pyTEM version: 0.2026.3.0\n"
108108
]
109109
}
110110
],
@@ -114,7 +114,7 @@
114114
"import numpy as np\n",
115115
"import matplotlib.pylab as plt\n",
116116
"\n",
117-
"\n",
117+
"sys.path.insert(0, \"../../\")\n",
118118
"import pyTEMlib\n",
119119
"\n",
120120
"if 'google.colab' in sys.modules:\n",

pyTEMlib/eds_tools/eds_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ 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))
490+
update_fit_values(spectrum.metadata['EDS'], peaks, np.abs(p))
491491
return np.array(peaks), np.abs(p)
492492

493493

0 commit comments

Comments
 (0)