(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BNCI_URL,
    verbose=None,
)
return {"session_0": runs}
Load data for 002-2014 dataset.
Load data for 002-2014 dataset.
Load data for 002 - 2014 dataset .
def _load_data_002_2014(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BNCI_URL,
    verbose=None,
):
    """Load data for 002-2014 dataset."""
    if (subject < 1) or (subject > 14):
        raise ValueError("Subject must be between 1 and 14. Got %d." % subject)

    runs = []
    for r in ["T", "E"]:
        url = "{u}002-2014/S{s:02d}{r}.mat".format(u=base_url, s=subject, r=r)
        filename = data_path(url, path, force_update, update_path)[0]

        # FIXME: electrode position and name are not provided directly.
        raws, _ = _convert_mi(filename, None, ["eeg"] * 15)
        runs.extend(raws)

    runs = {"run_%d" % ii: run for ii, run in enumerate(runs)}
    return {"session_0": runs}
def _load_data_002_2014 ( subject , path = None , force_update = False , update_path = None , base_url = BNCI_URL , verbose = None , ) : if ( subject < 1 ) or ( subject > 14 ) : raise ValueError ( "Subject must be between 1 and 14. Got %d." % subject ) runs = [ ] for r in [ "T" , "E" ] : url = "{u}002-2014/S{s:02d}{r}.mat" . format ( u = base_url , s = subject , r = r ) filename = data_path ( url , path , force_update , update_path ) [ 0 ] # FIXME: electrode position and name are not provided directly. raws , _ = _convert_mi ( filename , None , [ "eeg" ] * 15 ) runs . extend ( raws ) runs = { "run_%d" % ii : run for ii , run in enumerate ( runs ) } return { "session_0" : runs }