(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BNCI_URL,
    verbose=None,
)
return sessions
Load data for 008-2014 dataset.
Load data for 008-2014 dataset.
Load data for 008 - 2014 dataset .
def _load_data_008_2014(
    subject,
    path=None,
    force_update=False,
    update_path=None,
    base_url=BNCI_URL,
    verbose=None,
):
    """Load data for 008-2014 dataset."""
    if (subject < 1) or (subject > 8):
        raise ValueError("Subject must be between 1 and 8. Got %d." % subject)

    url = "{u}008-2014/A{s:02d}.mat".format(u=base_url, s=subject)
    filename = data_path(url, path, force_update, update_path)[0]

    run = loadmat(filename, struct_as_record=False, squeeze_me=True)["data"]
    raw, event_id = _convert_run_p300_sl(run, verbose=verbose)

    sessions = {"session_0": {"run_0": raw}}

    return sessions
def _load_data_008_2014 ( subject , path = None , force_update = False , update_path = None , base_url = BNCI_URL , verbose = None , ) : if ( subject < 1 ) or ( subject > 8 ) : raise ValueError ( "Subject must be between 1 and 8. Got %d." % subject ) url = "{u}008-2014/A{s:02d}.mat" . format ( u = base_url , s = subject ) filename = data_path ( url , path , force_update , update_path ) [ 0 ] run = loadmat ( filename , struct_as_record = False , squeeze_me = True ) [ "data" ] raw , event_id = _convert_run_p300_sl ( run , verbose = verbose ) sessions = { "session_0" : { "run_0" : raw } } return sessions