Error message

  • Notice: Undefined index: jspies in drupal_theme_initialize() (line 100 of /home/iat/
  • Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 146 of /home/iat/
  • Notice: Trying to get property of non-object in _theme_load_registry() (line 335 of /home/iat/
  • Notice: Undefined index: jspies in theme_get_setting() (line 1440 of /home/iat/


Is current?: 

How to use the Evaluative Priming extension for PIP

Under /user/yba/pipexample/epmulti are a few examples how to use PIP's EP extension on Project Implicit. 

Here is what to do in order to understand it all:

First, open the file epfull.expt.xml. The important line in that file is the one that defines the EP task. It explains how to run EP's extension: we run ep.js from the common folder using a jsp file under our study's folder. Usually, when we run a PIP script, we create the script and run it using a general jsp file under common. Here, instead of doing that, we created our own jsp file, set the task's settings to the script's global object, and then run the ep.js script.

Next, open the file epfull.jsp. It includes all the settings that you can use to modify the task. Read it through (and the comments) to understand what you can modify in the task. 

Usually, you won't want to change all the settings. If you want to keep a setting in its default value, simply don't include it in your jsp script. The exceptions to that rule are properties that are objects (canvas, primeCats, targetCats). If you don't want to change anything about the canvas or the categories, then you can indeed not include them at all in your jsp file. However, if you want to change even one of their properties (e.g., maxWidth in the canvas), then you must also define the other properties (i.e., proportions and all other properties).

Hopefully, your jsp will look more like the file epsimple.jsp. That file only sets the prime categories and leaves all the other settings without modifying them at all.

Wait, explain to me again: how do I create my own evaluative priming task?

Copy epsimple.jsp to your own folder. Enter the details of your own stimuli. If you have images, also change the base_url property. To add the EPT to your task, copy the relevant line from epsimple.expt.xml. That's it. If you want to change anything else in the task, have a look at the full settings in /user/yba/pipexample/epmulti/epfull.jsp or in /common/all/js/pip/piscripts/ep/ep.js

Advanced: modify the ep.js script

You can copy the ep.js script /common/all/js/pip/piscripts/ep/ep.js and run it as a usual PIP script. Then you can modify the settings at the beginning of the file, and also change anything you want in the code.

Good luck