expyfun.codeblocks.find_pupil_tone_impulse_response#

expyfun.codeblocks.find_pupil_tone_impulse_response(ec, el, bgcolor, fcolor, prompt=True, verbose=None, targ_is_fm=True)[source]#

Find pupil impulse response using responses to tones

Parameters:
ecinstance of ExperimentController

The experiment controller.

elinstance of EyelinkController

The Eyelink controller.

bgcolorcolor

Background color to use.

fcolorcolor

Fixation dot color to use.

promptbool

If True, a standard prompt message will be displayed.

verbosebool, str, int, or None

If not None, override default verbose level (see expyfun.verbose).

targ_is_fmbool

If True then use frequency modulated tones as the target and constant frequency tones as the non-target stimuli. Otherwise use constant frequency tones are targets and fm tones as non-targets.

Returns:
srfarray

The pupil response function to sound.

tarray

The time points for the response function.

std_errarray

The standard error as a function of time.

Notes

If el.dummy_mode is on, the test will run at around 10x the speed.

Examples using expyfun.codeblocks.find_pupil_tone_impulse_response#

Experiment using eye-tracking pupillometry

Experiment using eye-tracking pupillometry