diff --git a/Handle_emg_data.py b/Handle_emg_data.py index 179e7ec..954072e 100644 --- a/Handle_emg_data.py +++ b/Handle_emg_data.py @@ -9,7 +9,7 @@ class CSV_handler: self.working_dir = str(Path.cwd()) # Makes dataframe from the csv files in the working directory - def make_df(self, filename) + def make_df(self, filename): filepath = self.working_dir + str(filename) df = pd.read_csv(filepath) return df diff --git a/Handle_emg_data.pyc b/Handle_emg_data.pyc new file mode 100644 index 0000000..a5d99be Binary files /dev/null and b/Handle_emg_data.pyc differ diff --git a/Test_functions.py b/Test_functions.py new file mode 100644 index 0000000..7f4fcfe --- /dev/null +++ b/Test_functions.py @@ -0,0 +1,11 @@ +from Handle_emg_data.py import CSV_handler + +def test_df_extraction(): + handler = CSV_handler() + + filename = "Exp20201205_2myo_hardTypePP/HaluskaMarek_20201207_1810/myoLeftEmg.csv" + subject1_left_emg1 = handler.get_time_emg_table(filename, 1) + + print(subject1_left_emg1.head()) + +test_df_extraction()