API Reference#
This is the classes and functions reference of expyfun. Functions are grouped by hardware control type.
Experiment control#
Experiment control functions.
|
Interface for hardware control (audio, buttonbox, eye tracker, etc.) |
|
Eyelink communication and control methods. |
|
Parallel port and dummy triggering support. |
|
Use a sound card. |
|
Interface for TDT audio output, stamping, and responses. |
|
Assert that a specific version of expyfun is imported |
|
Convert a sequence of binary numbers to a sequence of decimal numbers. |
|
Ensure user passed valid units type |
|
Convert a sequence of decimal numbers to a sequence of binary numbers. |
|
Download specific expyfun version |
|
Read expyfun preference from env, then expyfun config |
Get path to standard expyfun config file. |
|
|
Get keyboard input of a specific type |
Built-in immutable sequence. |
|
|
Convenience function for setting the logging level |
|
Set expyfun preference in config |
Sound stimulus design#
Experiment sound stimulus functions.
|
Store the CRM corpus in memory for fast access. |
|
Binomial hypothesis testing tracker |
|
Class for selecting and pacing independent simultaneous trackers |
|
Up-down adaptive tracker |
|
Up-down adaptive tracker for the modified Hughson-Westlake Procedure |
|
Convolve a signal with a head-related transfer function. |
|
Compute the impulse response from data obtained using MLS |
|
Get allowable options for CRM stimuli. |
|
Prepare the CRM corpus for a given sampling rate and convert to wav |
|
Create a mouse-driven CRM response menu. |
|
Get a specific sentence from the hard drive. |
Get the TDT sample rates. |
|
|
Play a sound |
|
Generate a repeated MLS 0/1 signal for finding an impulse response |
|
Calculate the RMS of a signal |
|
Create ERB texture stimulus |
|
Vocode stimuli using a variety of methods |
|
Window the edges of a signal (e.g., to prevent "pops") |
File I/O#
File reading and writing routines.
|
Read python object from HDF5 format using h5io/h5py |
|
Read .tab file from expyfun output without segmenting into trials. |
|
Read .tab file from expyfun output and segment into trials. |
|
Read in a WAV file |
|
Write python object to HDF5 format using h5io/h5py |
|
Write a WAV file |
|
Reconstruct TrackerUD, TrackerBinom, TrackerMHW objects from .tab files. |
|
Reconstruct TrackerDealer object from .tab files. |
|
A circle or ellipse. |
|
A set of filled concentric circles drawn without edges. |
|
A diamond. |
|
A reasonable centered fixation dot. |
|
A connected set of line segments |
|
A progress bar that can be displayed between sections. |
|
Create image from array for on-screen display. |
|
A rectangle. |
|
A text object. |
|
A triangle |
|
Read video file and draw it to the screen. |
Code blocks#
Basic building blocks for standard experimental protocols.
|
Find pupil dynamic range |
|
Find pupil impulse response using responses to tones |
Analysis#
Tools for data analysis.
|
Makes barplots w/ optional line overlays, grouping, & signif. |
|
Remove the top and right edges of a plot frame, and point ticks outward. |
|
Estimate d′ and bias. |
|
Fit a sigmoid to summary data |
|
Format a p-value using one of several schemes. |
|
Convert proportion (expressed in the range [0, 1]) to logit. |
|
Plot a captured screenshot |
|
Convert press times to hits/misses/FA/CR and reaction times |
|
Restore missing values from one sequence using another |
|
Chi square fit for reaction times (a better summary statistic than mean) |
|
Calculate sigmoidal values along the x-axis |