fix: configuration of get_time_emg_table()

This commit is contained in:
Skudalen 2021-06-23 10:32:38 +02:00
parent c207fc2c99
commit 95c5cd7e8f

View File

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