(self, subject)
return {"session_0": data}
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"""
        data = {}
        sign = "EEGBCI"
        get_dataset_path(sign, None)

        # hand runs
        for run in self.hand_runs:
            raw = self._load_one_run(subject, run)
            stim = raw.annotations.description.astype(np.dtype("<U10"))
            stim[stim == "T0"] = "rest"
            stim[stim == "T1"] = "left_hand"
            stim[stim == "T2"] = "right_hand"
            raw.annotations.description = stim
            data["run_%d" % run] = raw

        # feet runs
        for run in self.feet_runs:
            raw = self._load_one_run(subject, run)
            # modify stim channels to match new event ids. for feets runs,
            # hand = 2 modified to 4, and feet = 3, modified to 5
            stim = raw.annotations.description.astype(np.dtype("<U10"))
            stim[stim == "T0"] = "rest"
            stim[stim == "T1"] = "hands"
            stim[stim == "T2"] = "feet"
            raw.annotations.description = stim
            data["run_%d" % run] = raw

        return {"session_0": data}
def _get_single_subject_data ( self , subject ) : data = { } sign = "EEGBCI" get_dataset_path ( sign , None ) # hand runs for run in self . hand_runs : raw = self . _load_one_run ( subject , run ) stim = raw . annotations . description . astype ( np . dtype ( "<U10" ) ) stim [ stim == "T0" ] = "rest" stim [ stim == "T1" ] = "left_hand" stim [ stim == "T2" ] = "right_hand" raw . annotations . description = stim data [ "run_%d" % run ] = raw # feet runs for run in self . feet_runs : raw = self . _load_one_run ( subject , run ) # modify stim channels to match new event ids. for feets runs, # hand = 2 modified to 4, and feet = 3, modified to 5 stim = raw . annotations . description . astype ( np . dtype ( "<U10" ) ) stim [ stim == "T0" ] = "rest" stim [ stim == "T1" ] = "hands" stim [ stim == "T2" ] = "feet" raw . annotations . description = stim data [ "run_%d" % run ] = raw return { "session_0" : data }