pnpl.tasks.schoffelen2019.TrialEpoching#
- class pnpl.tasks.schoffelen2019.TrialEpoching(tmin=0.0, tmax=1.0, label_type='trigger', include_tasks=None, _classes_sorted=<factory>, _label_to_id=<factory>)[source]#
Trial-onset epoching with a UPPT001 trigger-code label.
- Parameters:
tmin (float) – Start time relative to trial onset (seconds).
tmax (float) – End time relative to trial onset (seconds).
label_type (str) –
"trigger"to label each trial with its firstUPPT001code, or"binary"for a constant label of 1.include_tasks (list | None) – Restrict to a subset of MOUS tasks (
"auditory","visual","rest");Nonekeeps whatever the dataset provides._classes_sorted (list)
_label_to_id (dict)
- __init__(tmin=0.0, tmax=1.0, label_type='trigger', include_tasks=None, _classes_sorted=<factory>, _label_to_id=<factory>)#
- Parameters:
tmin (float)
tmax (float)
label_type (str)
include_tasks (list | None)
_classes_sorted (list)
_label_to_id (dict)
- Return type:
None
Methods
__init__([tmin, tmax, label_type, ...])collect_samples(dataset)get_label(sample)Attributes
include_taskslabel_infolabel_typetmaxtmin