Skip to content

liangleeTW/twostep_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twostep task

Overview

This twostep task is a Python-based application built using Tkinter, providing a lightweight and easy-to-run implementation of the two-step decision-making task. Because it relies solely on Tkinter for its graphical interface, it avoids the complexity and overhead of installing multiple dependencies, making setup straightforward and hassle-free.

This application is designed to be compatible with fMRI experimental protocols, supporting precise key press inputs for participant responses. By default, the left choice is registered with and the right choice with , but these key bindings can be easily modified within the code to suit your experimental needs.

Repository Contents

  • twostep.py — Main Python script implementing the two-step task.
  • twostep_constants.py — Defines instructions before and after the experiment.
  • payoff — Folder containing payoff csv files to choose from.
  • image_new — Folder containing aliens, spaceships, reward images.
  • README.md — This file, describing the project.

Usage

To use the code in this repository, you should have Python installed. Clone the repository and run twostep.py to execute the task or simulation. The constants and payoff configurations can be adjusted in their respective files to customize the task parameters.

git clone https://github.com/liangleeTW/twostep_task.git
cd twostep_task
python twostep.py

Requirements

  • Python: Any version that includes Tkinter (typically standard with most Python installations).

  • pandas: Required for data handling and analysis. Install via pip if not already available:

    pip install pandas

No other external libraries or dependencies are needed, ensuring a smooth and minimal setup process.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages