From 21da6ba6a898c77617f5bc7813ed7de010cbb224 Mon Sep 17 00:00:00 2001 From: Skudalen Date: Fri, 25 Jun 2021 09:05:10 +0200 Subject: [PATCH] test: test the plotting of denoising --- Signal_prep.py | 2 +- Test_functions.py | 2 +- __pycache__/Signal_prep.cpython-38.pyc | Bin 7622 -> 7622 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal_prep.py b/Signal_prep.py index ae6c5e3..4c7dc7a 100644 --- a/Signal_prep.py +++ b/Signal_prep.py @@ -139,7 +139,7 @@ def sure_threshold_filter(cA, cD): # soft filtering of wavelet trans with 0.25 lower percent def soft_threshold_filter(cA, cD): - cA_filt = pywt.threshold(cA, 0.25 * cA.max()) + cA_filt = pywt.threshold(cA, 0.4 * cA.max()) cD_filt = cD return cA_filt, cD_filt diff --git a/Test_functions.py b/Test_functions.py index 91f2411..2c9fca0 100644 --- a/Test_functions.py +++ b/Test_functions.py @@ -44,7 +44,7 @@ def test_plot_wavelet_both_ways(): cA_filt, cD_filt = soft_threshold_filter(cA, cD) plot_arrays(x, cA_filt) #print(len(cA_filt)) - y_new_values = inverse_wavelet(df, cA, cD) + y_new_values = inverse_wavelet(df, cA_filt, cD_filt) #print(len(y_new_values)) plot_arrays(N, y_new_values) diff --git a/__pycache__/Signal_prep.cpython-38.pyc b/__pycache__/Signal_prep.cpython-38.pyc index 2a578c0b148b28a15a26b0666169af698a2322e4..0df3168c210eb1d3ede824ca3d51e112c2e797c8 100644 GIT binary patch delta 35 ncmX?ReaxCSl$V!_0SNB&UrCs;k@uS<`>dHDaC0-4)E;I4-Ny}@ delta 35 ncmX?ReaxCSl$V!_0SKgfuO!Ue$oox_9mHc`xUiW^Y7a92s>TU8