From 5e0785b68fa04c48243f85a5a6d72bf018f34b5a Mon Sep 17 00:00:00 2001 From: James Kent Date: Mon, 15 Jul 2019 22:17:55 -0500 Subject: [PATCH] add band, order, and frequency args to eda_process --- neurokit/bio/bio_eda.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/neurokit/bio/bio_eda.py b/neurokit/bio/bio_eda.py index d9f60e9..9620c9b 100644 --- a/neurokit/bio/bio_eda.py +++ b/neurokit/bio/bio_eda.py @@ -22,7 +22,9 @@ # ============================================================================== # ============================================================================== # ============================================================================== -def eda_process(eda, sampling_rate=1000, alpha=8e-4, gamma=1e-2, filter_type = "butter", scr_method="makowski", scr_treshold=0.1): +def eda_process(eda, sampling_rate=1000, alpha=8e-4, gamma=1e-2, + filter_type="butter", scr_method="makowski", scr_treshold=0.1, + band='lowpass', order=4, frequency=5): """ Automated processing of EDA signal using convex optimization (CVXEDA; Greco et al., 2015). @@ -100,9 +102,9 @@ def eda_process(eda, sampling_rate=1000, alpha=8e-4, gamma=1e-2, filter_type = " if filter_type is not None: filtered, _, _ = biosppy.tools.filter_signal(signal=eda, ftype=filter_type, - band='lowpass', - order=4, - frequency=5, + band=band, + order=order, + frequency=frequency, sampling_rate=sampling_rate) # Smoothing