The Dual Context Working Memory (DCWM) Task presents participants with visual stimuli and verbal instructions about image choice and response type. Based on the instructions, participants will choose one of the images, and respond with either a button press or slider. The task supports both training and main experimental versions.
main.py- Main script for the experimental taskmain_training.py- Main script for the training version
init_task.py- Initialize task parameters and display for main taskinit_task_training.py- Initialize task parameters for trainingrun_session.py- Run the experimental session (main task)run_session_training.py- Run the training sessionfinish_experiment.py- Clean up after main experimentfinish_experiment_training.py- Clean up after training
get_instruction_text.py- Generate instruction text based on trial parametersget_motor_instruction_text.py- Generate response text (button/slider) based on trial parametersget_correct_responses.py- Calculate correct responses for trialsget_correct_responses_training.py- Calculate correct responses for training trialsintermission_screen.py- Display intermission/break screenssend_blackrock_comment.py- Send comments to Blackrock machinecbmex_utils.py- Utils functions from Baylor to assist with Blackrock commentsphotodiode_utils.py- Utils functions to refresh photodiode for timingfilter_picklable.py- Function for saving relevant data at the end of each trial
Task_Stim_New_v1- relevant folder for task stimuliTraining= relevant folder for training stimuli
DCWM_Instructions.docx- word doc with relevant instructions for running taskDCWM_Instructions.pptx- powerpoint accompanying the word documentDCWM_Task_Parameters.xlsx- not instructions, but may be helpful to understand task blocks
- Install via environment.yml file
- Cerebus: For Blackrock connection (cbmex_utils)
python main.pypython main_training.pySelect debug = 1 when prompted to:
- Skip Blackrock comment sending
- Use smaller window size
- Bypass sync tests
- Keyboard: Default input method (Left/Right arrow keys)
Data is saved as pickle files in:
- Main task:
../patientData/taskLogs/ - Training:
../patientData/trainingLogs/
Neural data logs will be saved in:
- Main task:
../patientData/neuralLogs/ - Training:
../patientData/neuralLogs_training/
Each file contains:
task_struct: All task parameters and trial datadisp_struct: Display configuration
This code built off of a task written by Tomas Aquino in PsychToolbox, found here: https://github.com/43technetium/VerbalInstructionTask