def smooth_signal(self, signal): implemented_smooth_method = self.chromatogram_settings.implemented_smooth_method pol_order = self.chromatogram_settings.savgol_pol_order window_len = self.chromatogram_settings.smooth_window window = self.chromatogram_settings.smooth_method return sp.smooth_signal(signal, window_len, window, pol_order, implemented_smooth_method)
def smooth_signal(signal, parameters: LCMSParameters): implemented_smooth_method = parameters.lc_ms.implemented_smooth_method pol_order = parameters.lc_ms.savgol_pol_order smooth_method = parameters.lc_ms.smooth_method window_len = parameters.lc_ms.smooth_window return sp.smooth_signal(signal, window_len, smooth_method, pol_order, implemented_smooth_method)