When using a dynamic peak list, ‘par.add_peaks’ determines how many times the peak list will be edited. After initial peak picking, and fitting the initial peaks, the peak list is edited to try to optimize the fit. This is given by a single value in ‘par.add_peaks’, so that the total number of loops over the fitting step is ‘par.add_peaks’+1. Complicated spectra may benefit from additional peak addition steps, so ‘par.add_peaks’ may be increased. Also, if an initial fit is given to the program, then by default, FitSpec assumes a fixed peak list, so that ‘par.add_peaks’ is set to zero, although this will be overridden in the user sets ‘par.add_peaks’ to be non-zero.
For 3 steps of peak addition (dynamic peak list):
par.add_peaks=3;