usnistgov / MATS

Multi-spectrum Analysis Tool for Spectroscopy
https://pages.nist.gov/MATS/
Other
9 stars 7 forks source link

Baseline Parameters aren't being saved in parameter update #5

Closed eadkins333 closed 3 years ago

eadkins333 commented 3 years ago

Added line baseline_list.loc[line, parameter] = par.value after the existing code block

for key, par in result.params.items():
            if ('Concentration' in par.name) or ('baseline' in par.name) or ('x_shift' in par.name):
                parameter = par.name[:(par.name.find('_', par.name.find('_')+1))]
                line = int(par.name[(par.name.find('_', par.name.find('_')+1))+1:])

This was in the code block for other parameter updates, but was missing for the concentration, baseline, and x-shift

eadkins333 commented 3 years ago

Closed 12/27/2019