test: test total denoising func
This commit is contained in:
parent
46558a075d
commit
cb3cca71fb
@ -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
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user