From c449b93d0f505637c03c9acedaed751fa46ee543 Mon Sep 17 00:00:00 2001 From: Koen Raijer Date: Sat, 2 Jul 2022 13:36:52 +0200 Subject: [PATCH 1/3] removed line for calc_fft as optional argument --- docs/quickstart.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index d0eaed9..ddd4861 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -60,7 +60,6 @@ Several optional arguments are available: * **windowsize:** _optional_ `windowsize` is the window size used for the calculation of the moving average. The windowsize is defined as `windowsize * samplerate`. Default windowsize=0.75. * **report_time:** _optional_ whether to report total processing time of process() loop. -* **calc_fft:** _optional_ whether to calculate frequency domain measures. Default = false Note: can cause slowdowns in some cases. * **calc_freq:** _optional_ whether to calculate frequency domain measures. Default = false Note: can cause slowdowns in some cases. * **freq_method:** _optional_ method used to extract the frequency spectrum. Available: 'fft' (Fourier Analysis), 'periodogram', and 'welch' (Welch's method), Default = 'welch' * **interp_clipping:** if True, clipping parts of the signal are identified and the implied peak shape is interpolated. Default=False From 5cbd461679ecfaac6ec385950394e494061ad7ca Mon Sep 17 00:00:00 2001 From: Koen Raijer Date: Sat, 2 Jul 2022 16:46:50 +0200 Subject: [PATCH 2/3] added filter_signal for Butterworth filter code block --- docs/algorithmfunctioning.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/algorithmfunctioning.rst b/docs/algorithmfunctioning.rst index a7a9942..08a6610 100644 --- a/docs/algorithmfunctioning.rst +++ b/docs/algorithmfunctioning.rst @@ -48,6 +48,7 @@ A Butterworth filter implementation is available to remove high frequency noise. import heartpy as hp filtered = hp.butter_lowpass_filter(data, cutoff=5, sample_rate=100.0, order=3) + filtered = hp.filter_signal(data, cutoff=5, sample_rate=100.0, order=3, filtertype='lowpass') .. image:: images/butterworth.jpeg From 745d7e1342c9aa07e5369e6319b7d2df49a0d26f Mon Sep 17 00:00:00 2001 From: Koen Raijer Date: Sat, 2 Jul 2022 16:49:15 +0200 Subject: [PATCH 3/3] changed code example for butterworth filter to use filter_signal instead of butter_lowpass_filter --- docs/algorithmfunctioning.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/algorithmfunctioning.rst b/docs/algorithmfunctioning.rst index 08a6610..74d5858 100644 --- a/docs/algorithmfunctioning.rst +++ b/docs/algorithmfunctioning.rst @@ -47,7 +47,6 @@ A Butterworth filter implementation is available to remove high frequency noise. import heartpy as hp - filtered = hp.butter_lowpass_filter(data, cutoff=5, sample_rate=100.0, order=3) filtered = hp.filter_signal(data, cutoff=5, sample_rate=100.0, order=3, filtertype='lowpass') .. image:: images/butterworth.jpeg