(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BBCI_URL,
    verbose=None,
)
return _convert_bbci(filename, ch_types, verbose=None)
Load data for 009-2015 dataset.
Load data for 009-2015 dataset.
Load data for 009 - 2015 dataset .
def _load_data_009_2015(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BBCI_URL,
    verbose=None,
):
    """Load data for 009-2015 dataset."""
    if (subject < 1) or (subject > 21):
        raise ValueError("Subject must be between 1 and 21. Got %d." % subject)

    # fmt: off
    subjects = [
        "fce", "kw", "faz", "fcj", "fcg", "far", "faw", "fax", "fcc", "fcm", "fas",
        "fch", "fcd", "fca", "fcb", "fau", "fci", "fav", "fat", "fcl", "fck",
    ]
    # fmt: on
    s = subjects[subject - 1]
    url = "{u}BNCIHorizon2020-AMUSE/AMUSE_VP{s}.mat".format(u=base_url, s=s)
    filename = data_path(url, path, force_update, update_path)[0]

    ch_types = ["eeg"] * 60 + ["eog"] * 2

    return _convert_bbci(filename, ch_types, verbose=None)
def _load_data_009_2015 ( subject , path = None , force_update = False , update_path = None , base_url = BBCI_URL , verbose = None , ) : if ( subject < 1 ) or ( subject > 21 ) : raise ValueError ( "Subject must be between 1 and 21. Got %d." % subject ) # fmt: off subjects = [ "fce" , "kw" , "faz" , "fcj" , "fcg" , "far" , "faw" , "fax" , "fcc" , "fcm" , "fas" , "fch" , "fcd" , "fca" , "fcb" , "fau" , "fci" , "fav" , "fat" , "fcl" , "fck" , ] # fmt: on s = subjects [ subject - 1 ] url = "{u}BNCIHorizon2020-AMUSE/AMUSE_VP{s}.mat" . format ( u = base_url , s = s ) filename = data_path ( url , path , force_update , update_path ) [ 0 ] ch_types = [ "eeg" ] * 60 + [ "eog" ] * 2 return _convert_bbci ( filename , ch_types , verbose = None )