test: test total denoising func

This commit is contained in:
Skudalen 2021-06-25 14:44:28 +02:00
parent 46558a075d
commit cb3cca71fb
3 changed files with 5 additions and 5 deletions

View File

@ -463,8 +463,8 @@ def get_min_max_timestamp(df:DataFrame):
# Help: returns df_time_emg # Help: returns df_time_emg
def make_df_from_xandy(x, y, emg_nr): def make_df_from_xandy(x, y, emg_nr):
print(type(x)) dict = {'timestamp': x, get_emg_str(emg_nr): y}
print(type(y)) df = DataFrame(dict)
df = DataFrame([x, y], columns=['timestamp', get_emg_str(emg_nr)]) #print(df)
return df return df

View File

@ -69,8 +69,8 @@ def test_total_denoising():
plot_df(df) plot_df(df)
# Denoised df: # Denoised df:
df_denoised = denoice_dataset(handler, 3, 'left', 3, 3) N_trans, y_values, df_denoised = denoice_dataset(handler, 3, 'left', 3, 3)
print(df.head) print(df_denoised.head)
plot_df(df_denoised) plot_df(df_denoised)
test_total_denoising() test_total_denoising()