An implementation of Eriksen flanker task in pyFlies.
For details please see these two papers:
Eriksen, B. A., & Eriksen, C. W., Effects of noise letters upon the identification of a target letter in a nonsearch task, Perception & psychophysics, 16(1), 143–149 (1974).
de Leeuw, J. R., JsPsych: A JavaScript library for creating behavioral experiments in a Web browser, Behavior research methods, (), 1–12 (2014).
To run this experiment in PsychoPy generator:
-
Clone the git repo:
git clone [email protected]:pyflies/EriksenFlanker.git # or without github account git clone https://github.com/pyflies/EriksenFlanker.git
-
Go into the folder and crate Python virtual environment:
cd EriksenFlanker python -m venv venv
-
Activate Python virtual environment:
source venv/bin/activate
-
Install PsychoPy generator for pyFlies:
pip install pyflies-psychopy
-
Generate Python code:
textx generate eriksen.pf --target psychopy --overwrite
-
Run it under PsychoPy:
- Install PsychoPy
- Run
python eriksen.py
- If you change the pyFlies model
eriksen.pf
you can regenerate the code with step 5 and then rerun withpython eriksen.py
. - You have to source the Python environment (step 3) for each new terminal session.