Closed ihgumilar closed 1 year ago
The above code is related to this
# Create dictionary which contains indices to delete
key_counter = 0
labels_indices = {}
for val in range(0, 15000, 125):
idx_start = val
idx_end = val + 125
labels_indices.update({key_counter : [idx_start, idx_end]})
key_counter += 1
labels_indices_2_delete = []
d05d594bbe52e8bcbc2374eb8d115ee2a2ad5b85 try to work from this
The list of indices is out of range. Max is 120. We need to check the epoch of EEG script
def extract_experimental_data(
path_2_csv_files: str,
path_2_save_experimental_file: str,
labelsequence_experiment: list,
bad_files: list = [],
):
"""
Extract experimental data from raw EEG file (*.csv) that was obtained from hyperscanning2-redesign experiment \n
Arguments :
- path_2_csv_files (str) : path to raw EEG file \n
- path_2_save_experimental_file (str) : path to save extracted baseline file for each condition \n
- labelsequence (int) : order of pre-defined label sequence \n
- bad_files (list) (optional) : file name(s) of raw EEG data, e.g., EEG-S8.csv, that wants to be skipped to process
Return :
Extracted *.fif (MNE-Python) file for each condition of hand (finger pointing and tracking).
There are 18 files in total for each participant.
44d89f1d316d31b5a30896dfdd12d604c8501b71 use this repo. It fixed all the issues. Those issues occured when we still have an issue with S-16 and data not complete yet.
Enhanced type of parameter of function
pre-processing of eye tracker files that are stored in the above are explained below :
Extract (separate data of baseline and experimental) using file of using extract_eye_tracker_new.py
,
Combine raw files using combine_2_csv_files_eye_tracker_data.py
,
Clean up the raw eye tracker files using file cleaning_eye_tracker.py
NOTE : Ignore file of extract_eye_tracker.py
Error
It seems that it is related to indices of deleted epochs EEG