A PsychoPy implementation of the Monetary Incentive Delay (MID) task for fMRI, adapted from mid-task. Participants respond to a briefly displayed target to earn or avoid losing money.
Unlike mid-task, this variant is deterministic:
- No adaptive QUEST staircase — target duration is fixed per difficulty level.
- Six cues from a 2 × 3 design (polarity × magnitude), following the
fmo-taskscheme:- Circle (gain) with low/mid/high line →
+$0,+$1,+$5 - Square (loss) with low/mid/high line →
-$0,-$1,-$5
- Circle (gain) with low/mid/high line →
- Three fixed difficulty levels (
low,medium,high) control target display duration.
| Document | Description |
|---|---|
| Usage Guide | Running the task, startup dialog, keyboard controls, and output files |
| Development Guide | Developer setup, project structure, and key constants |
| Release Guide | Versioning (SemVer), verification, and how releases are published |
UV is used for development; Anaconda is the production environment. Both install from the same
pyproject.toml — see the Development Guide for details.
UV (development):
uv venv && uv sync
mid-task-detAnaconda (production):
conda env create -f environment.yml
conda activate mid-task-deterministic
mid-task-detA separate, self-paced survey (ported from MATLAB RunRatings.m) for rating each
of the 6 cues on 7-point valence and arousal scales. Runs independently of the
MID task:
mid-ratings-detOutput is a timestamped data/<subject>_ratings_<ts>/ folder containing
<subject>_ratings.csv (polarity,magnitude,arousal,valence) and manifest.json. See
the Usage Guide for controls and details.