Geller Aaron S, Schlefer Ian K, Sederberg Per B, Jacobs Joshua, Kahana Michael J
University ofPennsylvania, Philadelphia, Pennsylvania 19104, USA.
Behav Res Methods. 2007 Nov;39(4):950-8. doi: 10.3758/bf03192990.
PyEPL (the Python Experiment-Programming Library) is a Python library which allows cross-platform and object-oriented coding of behavioral experiments. It provides functions for displaying text and images onscreen, as well as playing and recording sound, and is capable of rendering 3-D virtual environments forspatial-navigation tasks. It is currently tested for Mac OS X and Linux. It interfaces with Activewire USB cards (on Mac OS X) and the parallel port (on Linux) for synchronization of experimental events with physiological recordings. In this article, we first present two sample programs which illustrate core PyEPL features. The examples demonstrate visual stimulus presentation, keyboard input, and simulation and exploration of a simple 3-D environment. We then describe the components and strategies used in implementing PyEPL.
PyEPL(Python实验编程库)是一个Python库,它允许对行为实验进行跨平台的面向对象编码。它提供了在屏幕上显示文本和图像以及播放和录制声音的功能,并且能够为空间导航任务渲染3D虚拟环境。目前它已在Mac OS X和Linux上进行了测试。它与Activewire USB卡(在Mac OS X上)和并行端口(在Linux上)进行接口,以便将实验事件与生理记录同步。在本文中,我们首先展示两个示例程序,这些程序说明了PyEPL的核心功能。这些示例展示了视觉刺激呈现、键盘输入以及对简单3D环境的模拟和探索。然后我们描述了实现PyEPL所使用的组件和策略。