psychopy
精神病学 (PsychoPy)
This post will describe why I prefer using PsychoPy before other software. When I started getting involved in research (i.e., when doing my Bachelor’s and Masters theses) I used the software that was accessible for me. That is, some of the most commonly used software at the department I was studying at. After starting my Ph.D. studies I got more and more annoyed with one of the software we used to build experimental tasks in (i.e., E-prime).
这篇文章将描述为什么我更喜欢在其他软件之前使用PsychoPy 。 当我开始参与研究时(即,当我完成学士和硕士学位论文时),我使用了对我来说可访问的软件。 也就是我所研究的部门中一些最常用的软件。 开始我的博士学位后 研究越来越让我厌倦了我们用来构建实验任务的软件之一(即E-prime )。
First, I was not familiar with the scripting language (called ‘e-basic’) that was needed, for instance use, to solve pseudo-randomization, and for sending signals to a specially built device I was going to use in my experiments. Second, I prefer to use Linux systems and e-prime is limited to Windows. In fact, e-prime seemed to be working best Windows Vista or earlier but our lab computers were, and are, running Windows 7 (might have changed since back then). Some time into my Ph.D. studies I found PsychoPy which is written in Python, a programming language that I did know, and it seemed like a good alternative to e-prime, and other similar software, to create experiments in.
首先,我不熟悉脚本语言(称为“ e-basic”),例如,用于解决伪随机化以及将信号发送到我将在实验中使用的特殊设备所需的脚本语言(称为“ e-basic”)。 其次,我更喜欢使用Linux系统,而e-prime仅限于Windows。 实际上,e-prime似乎在Windows Vista或更早版本上运行效果最好,但是我们的实验室计算机曾经并且正在运行Windows 7(此后可能有所改变)。 有一段时间进入我的博士学位 研究发现,PsychoPy是用Python编写的,这是我确实知道的一种编程语言,并且似乎可以代替e-prime和其他类似软件来创建实验。

On PsychoPy’s website it is stated that is an open-source application to present stimuli and collect data in experiments. Being Open Source it also means that the software is free. Importantly, it can be run on Linux, OS-X, and Windows. One of the features that I like most is that I can choose to write code or to use an experimental builder such that of e-prime. Personally, I prefer to write scripts and not using a Builder. However, when coding I existing modules and methods in PsychoPy.
在PsychoPy的网站上说,这是一个开放源代码的应用程序,用于在实验中演示刺激并收集数据。 作为开源,这也意味着该软件是免费的。 重要的是,它可以在Linux,OS-X和Windows上运行。 我最喜欢的功能之一是可以选择编写代码或使用实验性的生成器(例如e-prime)。 就个人而言,我更喜欢编写脚本而不使用Builder。 但是,在编码时,PsychoPy中已有模块和方法。
Since I am running Linux on my computers it is possible for me to use my favourite Python IDE (Integrated Development Envirionment) called Spyder. I just import the modules and/or methods I need in my script and then I can run experiments from within Spyder. I assume, but don’t know, that you can use your favourite IDE in other OS’ also…
由于我在计算机上运行Linux,因此我可以使用我最喜欢的名为Spyder的 Python IDE( 集成开发环境 )。 我只需在脚本中导入所需的模块和/或方法,然后就可以在Spyder中运行实验。 我假设但不知道,您也可以在其他操作系统中使用自己喜欢的IDE ...
为什么学生应该使用PsychoPy (Why students should use PsychoPy)
For the less coding experienced people there is also the builder view. An experimental builder is a graphical interface with menus and, often, drag-and-drop like features.
对于缺乏编码经验的人,也有构建者视图。 实验性构建器是带有菜单的图形界面,通常具有类似拖放的功能。

The builder view is one of the reasons, I have started to suggest students that I meet to use PsychoPy to build experiments for their projects and thesis’. Another reason is that Python as scripting language is also great because the cognitive science students at our department take at least 15 ECTS in Python programming. It might be worth mentioning that since Python is a popular programming language with a great and helpful online community (see Stackoverflow tags “#Python” and “#Psychopy“) . Finally, because the students can install it on their on computers make it possible for the students to sit at home, in the library, or wherever they want, to complete their experiments.
生成器视图是原因之一,我开始建议我见面的学生使用PsychoPy为他们的项目和论文进行实验。 另一个原因是Python作为脚本语言也很棒,因为我们系的认知科学专业的学生在Python编程中至少需要15个ECTS。 值得一提的是,由于Python是一种流行的编程语言,具有强大而有用的在线社区(请参见Stackoverflow标签“ #Python ”和“ #Psychopy ”)。 最后,由于学生可以将其安装在计算机上,因此学生可以在家中,图书馆中或任何需要的地方坐下来完成实验。
安装PsychoPy (Installing PsychoPy)
If you are interested in installing it from Ubuntu you can add the Neuro Debian repository:
如果您有兴趣从Ubuntu安装它,可以添加Neuro Debian存储库 :
wget -O- http://neuro.debian.net/lists/trusty.de-m.full sudo tee /etc/apt/sources.list.d/neurodebian.sources.list sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9 sudo apt-get update && sudo apt-get install psychopy
wget -O- http://neuro.debian.net/lists/trusty.de-m.full sudo tee /etc/apt/sources.list.d/neurodebian.sources.list sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9 sudo apt-get update && sudo apt-get install psychopy
Note that you might need to install some dependencies (i.e., some other Python packages) to get it to run under Ubuntu (it might prove useful to check the post linked below).
请注意,您可能需要安装一些依赖项(即某些其他Python软件包)才能使其在Ubuntu下运行(检查下面链接的文章可能会很有用)。
If you are running Linux Mint Debian Edition (LMDE) you can try to use the instructions in an earlier post How to Install PsychoPy on LMDE.
如果您正在运行Linux Mint Debian Edition(LMDE),则可以尝试使用之前的文章“ 如何在LMDE上安装PsychoPy”中的说明。
心理资源 (PsychoPy Resources)
There is, as far as I know, only one book that mentions and give an example of how to use PsychoPy: Computational Neuroscience and Cognitive Modelling: A Student’s Introduction to Methods and Procedures
据我所知,只有一本书提到并举例说明了如何使用PsychoPy: 计算神经科学和认知建模:学生对方法和程序的介绍

You can also take a look at an example script I have written: SART written in PsychoPy. Finally, here you will find some useful links to Python (and R) related resources: Python Resources.
您还可以看一下我编写的示例脚本: 用PsychoPy编写的SART 。 最后,在这里您将找到一些有用的指向Python(和R)相关资源的链接: Python Resources。
翻译自: https://www.pybloggers.com/2015/11/free-useful-software-psychopy/
psychopy