def get_filter(self, ydats, method='scipySG', **kws):
        if method == 'pymcaSG':
            npoints = kws.get('npoints', 9)
            degree = kws.get('degree', 4)
            order = kws.get('order', 0)
            ysdats = []
            print("Smoothing data with Savitzky-Golay filter (pymca)...")
            for y in ydats:
                ysdats.append(_pymca_SG(y, npoints=npoints, degree=degree, order=order))
            return ysdats
        elif method == 'scipySG':
            window_size = kws.get('window_size', 9)
            order = kws.get('order', 4)
            deriv = kws.get('deriv', 0)
            ysdats = []
            print("Smoothing data with Savitzky-Golay filter (scipy)...")
            for y in ydats:
                ysdats.append(savitzky_golay(y, window_size=window_size, order=order, deriv=deriv))
            return ysdats
        else:
            raise NameError("method not known!")
Returns the Pulsar WSGI application.
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/specfiledata.py/SpecfileData.get_filter--crossover with--dataset/ETHPy150Open galaxyproject/pulsar/pulsar/web/wsgi.py/app_factory