(self, subject)
return {"session_0": {"run_0": raw}}
return data for a single subject
return data for a single subject
return data for a single subject
def _get_single_subject_data(self, subject):
        """return data for a single subject"""
        raw = mne.io.read_raw_eeglab(
            self.data_path(subject), preload=True, verbose="ERROR"
        )
        stim = raw.annotations.description.astype(np.dtype("<10U"))

        stim[stim == "20"] = "right_hand"
        stim[stim == "10"] = "left_hand"
        raw.annotations.description = stim
        return {"session_0": {"run_0": raw}}
def _get_single_subject_data ( self , subject ) : raw = mne . io . read_raw_eeglab ( self . data_path ( subject ) , preload = True , verbose = "ERROR" ) stim = raw . annotations . description . astype ( np . dtype ( "<10U" ) ) stim [ stim == "20" ] = "right_hand" stim [ stim == "10" ] = "left_hand" raw . annotations . description = stim return { "session_0" : { "run_0" : raw } }