goxpyriment

Retinotopy Experiment

This is a Go implementation of the HCP Retinotopic Mapping experiment, ported from the Python version developped by Christophe Pallier and Bosco Taddei.

Prerequisites

  1. SDL3 Libraries: Ensure SDL3 is installed on your system.
  2. Stimuli Extraction: The experiment requires the stimuli to be extracted from the HDF5 file. If you haven’t done so, run the extraction script:
    python3 Retinotopy/h5topng.py
    

How to Run

By default, the experiment starts in FULLSCREEN mode.

Standard Run (Fullscreen)

Starts in 1280x1024 fullscreen mode with the 768x768 stimulus centered.

go run examples/retinotopy/main.go -s 0 -r 1

Development Mode (Windowed)

Starts in a 900x900 window with the 768x768 stimulus centered.

go run examples/retinotopy/main.go -s 0 -r 1 -d

Command Line Options

Controls

Data Collection

Results are saved as .xpd files in the data/ directory, containing frame-by-frame timing and event logs.