scippneutron.peaks.remove_peaks#
- scippneutron.peaks.remove_peaks(data, fit_results)[source]#
Remove peaks from data by subtracting fitted models.
Peaks are removed by subtracting fitted peak models from the data. The background models are ignored in this operation.
- Parameters:
- Returns:
DataArray
–data
with peaks removed.
See also
fit_peaks
Fit the peaks in
data
and construct the required input tofit_results
.