Skip to content

Latest commit

 

History

History
92 lines (59 loc) · 2.21 KB

README.md

File metadata and controls

92 lines (59 loc) · 2.21 KB

Avoidance learning Task

MSIT Icon

Actions Status Actions Status

This repo contains the avoidance learning task. It is a jspsych7 task built with React and Electron. This task uses Honeycomb (also known as Neuro Task Starter).

Getting Started

  1. Clone this repo onto your computer
git clone https://github.com/lucywowen/avoidance_learning_task.git
  1. Change directory into the new folder
cd avoidance_learning_task
  1. Set the remote url to your tasks' repo (create a github repo if not yet created)
git remote set-url origin <PATH_TO_YOUR_REPO>
  1. Install the dependencies (the -D flag installs the dev dependencies as well as the production ones)
npm install -D
  1. Run the task in dev mode - this should launch an electron window with the task with the inspector open to the console and will hot-reload when changes are made to the app
npm run dev
  1. Check out the data - the data is saved throughout the task to the users's app directory. This is logged at the beginning of the task wherever you ran npm run dev

To run EEG participants:

  1. Change directory into the new folder
cd avoidance_learning_task
  1. Pull any changes to the task, just in case
git pull
  1. Install the dependencies (the -D flag installs the dev dependencies as well as the production ones)
npm install -D
  1. Run the task
npm run dev:clinic
  1. Use whatever participant name you want, but try to use the same study ID across subjects. For example, use 'TEST' for study ID if you're just debugging and use 'STUDY'.

  2. If you need to change anything, please use a different branch!!

git checkout -b <new branch name>
  1. Push any changes on the different branch
git push
  1. Hope for no merge issues :)