diff --git a/Handle_emg_data.py b/Handle_emg_data.py index 0dfde5c..b04cd3a 100644 --- a/Handle_emg_data.py +++ b/Handle_emg_data.py @@ -15,13 +15,19 @@ class CSV_handler: # Extracts out the timestamp and the selected emg signal into a new dataframe def get_time_emg_table(self, filename, emg_nr): - tot_data_frame = self.make_df(self, filename) + tot_data_frame = self.make_df(filename) emg_str = "emg" + str(emg_nr) filtered_df = tot_data_frame[["timestamp", emg_str]] return filtered_df - +handler = CSV_handler() + +file = "/Exp20201205_2myo_hardTypePP/HaluskaMarek_20201207_1810/myoLeftEmg.csv" +subject1_left_emg1 = handler.get_time_emg_table(file, 1) +print(subject1_left_emg1.head) +#df = handler.make_df(file) +#print(df.head)