I'm using lmfit to fit Raman data. I'm using 7 Gaussian peaks and a linear background (5 of these peaks are known, and two are unknown) I've included a weights array (inverse square of the stdev). When I include the weights - the fit visually looks much better and the plotted residuals also have less structure, however, the chi-squared and reduced chi-squared values are reported as 0. I'm not sure if I'm using the weighting value correctly, or perhaps not interpreting the results correctly. I've copied my code below. Thank you very much for any helpI'm using lmfit to fit Raman data. I'm using 7