(
    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 012-2015 dataset.
Load data for 012-2015 dataset.
Load data for 012 - 2015 dataset .
def _load_data_012_2015(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BBCI_URL,
    verbose=None,
):
    """Load data for 012-2015 dataset."""
    if (subject < 1) or (subject > 12):
        raise ValueError("Subject must be between 1 and 12. Got %d." % subject)

    subjects = ["nv", "nw", "nx", "ny", "nz", "mg", "oa", "ob", "oc", "od", "ja", "oe"]

    s = subjects[subject - 1]
    url = "{u}BNCIHorizon2020-PASS2D/PASS2D_VP{s}.mat".format(u=base_url, s=s)
    filename = data_path(url, path, force_update, update_path)[0]

    ch_types = ["eeg"] * 63

    return _convert_bbci(filename, ch_types, verbose=None)
def _load_data_012_2015 ( subject , path = None , force_update = False , update_path = None , base_url = BBCI_URL , verbose = None , ) : if ( subject < 1 ) or ( subject > 12 ) : raise ValueError ( "Subject must be between 1 and 12. Got %d." % subject ) subjects = [ "nv" , "nw" , "nx" , "ny" , "nz" , "mg" , "oa" , "ob" , "oc" , "od" , "ja" , "oe" ] s = subjects [ subject - 1 ] url = "{u}BNCIHorizon2020-PASS2D/PASS2D_VP{s}.mat" . format ( u = base_url , s = s ) filename = data_path ( url , path , force_update , update_path ) [ 0 ] ch_types = [ "eeg" ] * 63 return _convert_bbci ( filename , ch_types , verbose = None )