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
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

View File

@ -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()