A cross-platform python application for running reaction-based experiments with non-human primates.
-
Install the latest version of PsychoPy on your platform of choice.
-
Within the PsychoPy application, go to the monitor center and enter your chosen monitor's specifications (this isn't necessarily required, but is recommended for proper stimuli sizing).
-
Using a PsychoPy (or any text-editor ), open program_specs.py. Set the
monitor_name
variable to the name of the monitor you added to the monitor center. As we are using fullscreen mode within PsychoPy, the 'window_size' will be overridden, but if you enter the exact screen resolution as your monitor you will avoid an error message during runtime. Settouch_screen
toTrue
orFalse
depending on if you are using a mouse or touch-enabled screen.shape_size
can take on values between 0.0 and 1.0 and scales the size of each stimuli object within the window. Run shape_test.py to get a feel for how this scaling factor applies to each different shape. -
In this application, parameters for the various experiments are tied to specific subjects. So in order to run your first experiment you need to add at least one subject with all of its parameters set. Open and run changeParameters.py from within PsychoPy. A gui dialog will pop up. Click on "NEW Subject" from the drop down menu and then click ok.
Now you will be presented with the parameter customization screen. You will first need to enter a name for the subject. Parameters are grouped according to their corresponding phases, with global values at top. Each field has a default value, which can be changed by editing changeParameters.py if you wish.
-
Now we are ready to run some trials. Open main.py within PsychoPy and hit run. Select a subject and then select a mode and you are ready to start.
-
Results will be stored in a single csv file titled titi_monkey_data.csv. After each run of a training session or experiment, results will be appended to this file.
- Press escape at any time during a phase 0 (circle training) run to exit the program. During any of the other training types (including experiments), press escape once the stimulus has been displayed after the hold phase delay.
- You can change the condition of a subject and the session time in the second dialog of main.py without having to run the parameter modification utility.
All parameters are stored in a json file which is structured as a dictionary with top level keys consisting of the names (strings) of all the current test subjects. The sub dictionaries consist of global cross-phase parameters and specific parameters for each phase.