fix: fix the left/rigth config in store func

This commit is contained in:
Skudalen 2021-06-25 11:01:01 +02:00
parent 4dd670b8f1
commit 2836d479f6
4 changed files with 3 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -153,7 +153,7 @@ class CSV_handler:
for round in range(4): for round in range(4):
for emg_nr in range(8): for emg_nr in range(8):
filename = right_list[subject_nr][round] filename = right_list[subject_nr][round]
self.store_df_in_container(filename, emg_nr, 'left', data_container, round+1) self.store_df_in_container(filename, emg_nr, 'right', data_container, round+1)
# Links the stored data in the data_container to the Handler # Links the stored data in the data_container to the Handler
self.link_container_to_handler(data_container) self.link_container_to_handler(data_container)
return self.data_container_dict return self.data_container_dict

View File

@ -15,7 +15,8 @@ def test_load_func():
handler = CSV_handler() handler = CSV_handler()
test_dict = handler.load_hard_PP_emg_data() test_dict = handler.load_hard_PP_emg_data()
subject2_container = test_dict.get(2) subject2_container = test_dict.get(2)
#print(subject2_container) print(subject2_container)
print(subject2_container.subject_name)
print(subject2_container.data_dict_round1.get('left')[1]) print(subject2_container.data_dict_round1.get('left')[1])
def test_min_max_func(): def test_min_max_func():