diff --git a/pyTEMlib/eels_tools.py b/pyTEMlib/eels_tools.py index 1ec46741..4eb0284e 100644 --- a/pyTEMlib/eels_tools.py +++ b/pyTEMlib/eels_tools.py @@ -1471,7 +1471,7 @@ def residuals(pp, xx, yy): edges[key]['areal_density'] = p[int(key)+5] edges['model'] = {} - edges['model']['background'] = (back + p[6] + p[7] * x + p[8] * x * x) + edges['model']['background'] = (background + p[6] + p[7] * x + p[8] * x * x) edges['model']['background-poly_0'] = p[6] edges['model']['background-poly_1'] = p[7] edges['model']['background-poly_2'] = p[8]