ihgumilar / Hyperscanning2-redesign

Experiment of hyperscanning2-redesign is adding questionnaire inside VR and also improved the UNITY that is used for the experiment.
1 stars 1 forks source link

Delete data that is in the same part with EEG data, which is deleted during pre-processing. It is available in the previous script by getting the index of deleted epoch of EEG #11

Closed ihgumilar closed 1 year ago

ihgumilar commented 2 years ago

Error image

It seems that it is related to indices of deleted epochs EEG

image

ihgumilar commented 2 years 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 = []

image

ihgumilar commented 2 years ago

d05d594bbe52e8bcbc2374eb8d115ee2a2ad5b85 try to work from this

ihgumilar commented 2 years ago

The list of indices is out of range. Max is 120. We need to check the epoch of EEG script

Image

ihgumilar commented 1 year ago
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.
ihgumilar commented 1 year ago

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 :

NOTE : Ignore file of extract_eye_tracker.py