feat: func to extract the selected table with emg nr,
get_time_emg_table()
This commit is contained in:
parent
e2fc16f145
commit
15937bdd64
@ -5,7 +5,7 @@ class CSV_handler:
|
||||
|
||||
self.working_dir
|
||||
|
||||
def __init__():
|
||||
def __init__(self):
|
||||
self.working_dir = str(Path.cwd())
|
||||
|
||||
def make_df(self, filename)
|
||||
@ -13,8 +13,12 @@ class CSV_handler:
|
||||
df = pd.read_csv(filepath)
|
||||
return df
|
||||
|
||||
def get_time_emg_table(filepaths, subject_nr):
|
||||
return None
|
||||
def get_time_emg_table(self, filename, emg_nr):
|
||||
|
||||
tot_data_frame = make_df(self, filename)
|
||||
emg_str = "emg" + str(emg_nr)
|
||||
filtered_df = tot_data_frame[emg_str]
|
||||
return filtered_df
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user