(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BNCI_URL,
    verbose=None,
)
return raws, event_id
Load data for 013-2015 dataset.
Load data for 013-2015 dataset.
Load data for 013 - 2015 dataset .
def _load_data_013_2015(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BNCI_URL,
    verbose=None,
):
    """Load data for 013-2015 dataset."""
    if (subject < 1) or (subject > 6):
        raise ValueError("Subject must be between 1 and 6. Got %d." % subject)

    data_paths = []
    for r in ["s1", "s2"]:
        url = "{u}013-2015/Subject{s:02d}_{r}.mat".format(u=base_url, s=subject, r=r)
        data_paths.extend(data_path(url, path, force_update, update_path))

    raws = []
    event_id = {}

    for filename in data_paths:
        data = loadmat(filename, struct_as_record=False, squeeze_me=True)
        for run in data["run"]:
            raw, evd = _convert_run_epfl(run, verbose=verbose)
            raws.append(raw)
            event_id.update(evd)
    return raws, event_id
def _load_data_013_2015 ( subject , path = None , force_update = False , update_path = None , base_url = BNCI_URL , verbose = None , ) : if ( subject < 1 ) or ( subject > 6 ) : raise ValueError ( "Subject must be between 1 and 6. Got %d." % subject ) data_paths = [ ] for r in [ "s1" , "s2" ] : url = "{u}013-2015/Subject{s:02d}_{r}.mat" . format ( u = base_url , s = subject , r = r ) data_paths . extend ( data_path ( url , path , force_update , update_path ) ) raws = [ ] event_id = { } for filename in data_paths : data = loadmat ( filename , struct_as_record = False , squeeze_me = True ) for run in data [ "run" ] : raw , evd = _convert_run_epfl ( run , verbose = verbose ) raws . append ( raw ) event_id . update ( evd ) return raws , event_id