doc: describe the get get_df func

This commit is contained in:
Skudalen 2021-06-25 14:00:25 +02:00
parent 7b7181218e
commit c650eb928c
2 changed files with 3 additions and 3 deletions

View File

@ -443,6 +443,7 @@ class CSV_handler:
self.data_type = 'soft'
return self.data_container_dict
# Retrieves df via the data_dict in the handler object
def get_df_from_data_dict(self, subject_nr, which_arm, round, emg_nr):
data_type = self.data_type
container = self.data_container_dict.get(subject_nr)

View File

@ -71,9 +71,8 @@ def inverse_wavelet(df, cA_filt, cD_filt):
return y_new_values
# Takes in handler and detailes to denoise. Returns arrays and df
def denoice_dataset(handler:Handler.CSV_handler, subject_nr, which_arm, emg_nr, round):
print(df.head)
def denoice_dataset(handler:Handler.CSV_handler, subject_nr, which_arm, round, emg_nr):
df = handler.get_df_from_data_dict(subject_nr, which_arm, round, emg_nr)
N = get_xory_from_df('x', df)
N_trans, cA, cD = wavelet_db4_denoising(df)