expyfun.codeblocks.find_pupil_dynamic_range#

expyfun.codeblocks.find_pupil_dynamic_range(ec, el, prompt=True, verbose=None)[source]#

Find pupil dynamic range

Parameters:
ecinstance of ExperimentController

The experiment controller.

elinstance of EyelinkController

The Eyelink controller.

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).

Returns:
bgcolorarray

The background color that maximizes dynamic range.

fcolorarray

The corresponding fixation dot color.

levelsarray

The levels shown.

responsesarray

The average responses to each level.

Notes

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

Examples using expyfun.codeblocks.find_pupil_dynamic_range#

Experiment using eye-tracking pupillometry

Experiment using eye-tracking pupillometry