ERP API Reference

physiolabxr.scripting.physio.epochs

get_event_locked_data(event_marker, data, events_of_interest, tmin, tmax, srate, return_last_event_time=False, verbose=None)

Get event locked data.

Parameters:
event_marker : tuple

tuple of event marker and its timestamps

data : tuple

tuple of data and its timestamps

events_of_interest : list

iterable of event markers with which to get event aligned data

tmin : float

minimum time

tmax : float

maximum time

srate : float

sampling rate

return_last_event_time : bool

whether to return the time of the last found in the data

verbose : bool

If True, prints information about the event locked data. Default is True

Returns:

dictionary of event marker and its corresponding event locked data. The keys are the event markers

Return type:

dict

buffer_event_locked_data(event_locked_data, buffer)

Buffer event locked data.

Parameters:
event_locked_data : dict

dictionary of event marker and its corresponding event locked data. The keys are the event markers.

buffer : dict

dictionary of event marker and its corresponding buffer. The keys are the event markers.

Returns:

dictionary of event marker and its corresponding event locked data. The keys are the event markers.

Return type:

dict

get_baselined_event_locked_data(event_locked_data, pick: int, baseline_t, srate)

get baselined event locked data

Parameters:
event_locked_data : dict

dictionary of event marker and its corresponding event locked data. The keys are the event markers.

pick : int

index of the channel to baseline.

baseline_t : tuple

baseline time

srate : float

sampling rate

Returns:

dictionary of event marker and its corresponding event locked data. The keys are the event markers.

Return type:

dict