Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 2.14 KB

File metadata and controls

47 lines (31 loc) · 2.14 KB

Go/No-Go Task Implementation

This project is a simple implementation of the classic Go/No-Go psychological task using pyactr.

Disclaimer: This project was developed as an undergraduate research exercise. It is not validated for use in real experimental settings. If you intend to use or adapt this code for scientific experiments, please thoroughly review the logic, methodology, and implementation. Feel free to fork and update as needed.

Task Overview

  • Go Trials: Indicated by the letter 'A'.
  • No-Go Trials: Indicated by the letter 'O'.
  • Stimulus Duration: Each stimulus is presented for 1000 ms.
  • Inter-Stimulus Interval (ISI): A blank screen is displayed between stimuli.
  • Trial Distribution: By default, 75% of the trials are Go trials, with a total of 125 trials.

Most task settings (e.g., trial count, Go probability, timings) are configurable within the script.

Output

The simulation script produces ACT-R trace files in plain text format.

Analysis

  • Trace files (.txt) are converted into .csv files for analysis.
  • Reaction Time (RT) is calculated as:
RT = time of keypress - time when Go stimulus is processed in the visual buffer

Folder Structure

  • data/ - Main directory containing all output data.
  • raw/ - Contains raw .txt ACT-R trace files.
  • converted/ - Contains .csv files converted from raw traces.
  • RTs/ - Contains final .csv files with calculated RTs.

Usage

  1. IMPORTANT: Ensure the data/raw folder is cleared before each run to prevent overwriting or duplicate files.
  2. Run pyactrGoNogo.py. (Set realtime=True in sim = m.simulation() if you want to visualize the task)
  3. Run analysis.py to convert and compute RTs.

Documentation

For more information on how pyactr works, refer to the official documentation: https://github.com/jakdot/pyactr

Disclaimer: This project was developed as an undergraduate research exercise. It is not validated for use in real experimental settings. If you intend to use or adapt this code for scientific experiments, please thoroughly review the logic, methodology, and implementation. Feel free to fork and update.