From cb3cca71fb0930ad660753a6fce1634638bbc1dd Mon Sep 17 00:00:00 2001 From: Skudalen Date: Fri, 25 Jun 2021 14:44:28 +0200 Subject: [PATCH] test: test total denoising func --- Handle_emg_data.py | 6 +++--- Test_functions.py | 4 ++-- __pycache__/Handle_emg_data.cpython-38.pyc | Bin 19896 -> 19849 bytes 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Handle_emg_data.py b/Handle_emg_data.py index 2e4b81d..437ae9a 100644 --- a/Handle_emg_data.py +++ b/Handle_emg_data.py @@ -463,8 +463,8 @@ def get_min_max_timestamp(df:DataFrame): # Help: returns df_time_emg def make_df_from_xandy(x, y, emg_nr): - print(type(x)) - print(type(y)) - df = DataFrame([x, y], columns=['timestamp', get_emg_str(emg_nr)]) + dict = {'timestamp': x, get_emg_str(emg_nr): y} + df = DataFrame(dict) + #print(df) return df diff --git a/Test_functions.py b/Test_functions.py index 0b050b9..e0f997a 100644 --- a/Test_functions.py +++ b/Test_functions.py @@ -69,8 +69,8 @@ def test_total_denoising(): plot_df(df) # Denoised df: - df_denoised = denoice_dataset(handler, 3, 'left', 3, 3) - print(df.head) + N_trans, y_values, df_denoised = denoice_dataset(handler, 3, 'left', 3, 3) + print(df_denoised.head) plot_df(df_denoised) test_total_denoising() diff --git a/__pycache__/Handle_emg_data.cpython-38.pyc b/__pycache__/Handle_emg_data.cpython-38.pyc index 12783644bcf880076def6455179fb8543e980726..06146b197f3c3286f6071650a091142fa96b06da 100644 GIT binary patch delta 185 zcmdlno3V2?BX1}#FBbz4u$;e|aC#%}9dE{!lV5pjv$+Drirgkk`&cHq1DVOpAVpBX z3Zz+p*cph6Wq?EqV+}(ILk&|iV+~^_Q!R4|V-0gNV=YS!OE5!`6HtLBQ;{Q(Dgv3J z$$E>i;ud3Nkus2TizOv9xn#1Vm+0glJ`y}^Kp_T30Y(m{BJas^z8Z|qlihu_*+4ER N@}9&jKDpml697mkCkg-n delta 233 zcmeC2&A4MWBX1}#FBbz41fIT{aAza$9dAa>$*;V%*<65PMXr;jeJtzUfXrlOkRm8x z0n)5M>66PAFW)O?1m#LPyhB=r) zli9CG6{uH}@fLe>eokp_Ua=<2E!Kjf%)F9YEG3l%sYM_=iyQ?&idb$jR@`E&EK&w? wCOdkGPCo4;!N&pQFfj4}p#)=*&*b+$8jMbpC49BnKrSxwnZztUIl)&G07u(1(*OVf