Difference between revisions of "Psychopy"

From TSG Doc
Jump to: navigation, search
 
(48 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Requirements ==
+
{{mbox
 +
| type = content
 +
| text = '''This page is outdated.'''
 +
  | image = {{{image|}}}
 +
}}
  
== Drivers ==
+
{{Infobox software
 +
| name                  = Psychopy
 +
| logo                  = Psychopy Logo.png
 +
| logo size              = 250px
 +
| screenshot            =  
 +
| caption                =
 +
| developer              =
 +
| released              = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} -->
 +
| discontinued          =
 +
| latest release version =
 +
| latest release date    = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} -->
 +
| latest preview version =
 +
| latest preview date    = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} -->
 +
| installed version      =
 +
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} -->
 +
| status                = Active
 +
| programming language  = Python
 +
| operating system      =
 +
| platform              =
 +
| size                  =
 +
| language              =
 +
| genre                  =
 +
| license                =
 +
| website                =
 +
| resources              =
 +
  {{Infobox tsg
 +
    | child              = yes
 +
    | downloads          = {{bulleted list
 +
        | [[Media:TemplatePsychopy2013.zip|Template]]
 +
    }}
 +
    | manuals            = {{bulleted list
 +
        | [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]
 +
    }}
 +
  }}
 +
}}
 +
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.
  
== General ==
 
  
== Course ==
+
== Upgrade ==
 +
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.
 +
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')
 +
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html
  
== Tutorial ==
+
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.
 +
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.
 +
 +
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.
 +
 
 +
On the labcomputer, there is support for Spyder, PyCharm and Psychopy.
 +
 
 +
'''The information below is obsolete'''
 +
 
 +
 
 +
== Installation ==
 +
{{see also|Psychopy/Installation}}
 +
Click [http://www.psychopy.org/installation.html here] for more information on installing PsychoPy. For Radboud Social Sciences specific instructions, visit the [[Psychopy/Installation]] page.
 +
 
 +
== Learning PsychoPy ==
 +
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]
 +
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]
  
 
== Templates ==
 
== Templates ==
 +
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]
 +
 +
== Troubleshooting ==
 +
 +
==== Version Change to 1.85 ====
 +
 +
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.
 +
This may lead to slightly larger but still small latency.We do not expect this to be problematic.
 +
If you have any questions about this, come to TSG.
 +
Do you use audio in psychopy and choose your own backend with the following line:
 +
 +
''prefs.general['audioLib'] = ['pyo']''
 +
 +
change this
 +
 +
''prefs.general['audioLib'] = ['sounddevice']''
 +
 +
This may lead to slightly larger but still small latency. We do not expect this to be problematic.
 +
 +
If you have any questions about this, come to TSG.
 +
 +
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0
 +
 +
==== Version History ====
 +
 +
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html
 +
 +
==== Google Mailing list ====
 +
 +
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users
  
== Designing Principles ==
+
==== GitHub Repository ====
  
== Code Layout and formatting ==
+
For requests / bug report / issues click here: https://github.com/psychopy/psychopy

Latest revision as of 18:15, 21 January 2021

Psychopy
Psychopy Logo.png
Development statusActive
Written inPython
Downloads
Manuals

PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.


Upgrade

Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits. If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text') Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html

Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop. There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.

When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.

On the labcomputer, there is support for Spyder, PyCharm and Psychopy.

The information below is obsolete


Installation

Click here for more information on installing PsychoPy. For Radboud Social Sciences specific instructions, visit the Psychopy/Installation page.

Learning PsychoPy

Templates

Find the presentation Template here Media:TemplatePsychopy2013.zip

Troubleshooting

Version Change to 1.85

If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way. This may lead to slightly larger but still small latency.We do not expect this to be problematic. If you have any questions about this, come to TSG. Do you use audio in psychopy and choose your own backend with the following line:

prefs.general['audioLib'] = ['pyo']

change this

prefs.general['audioLib'] = ['sounddevice']

This may lead to slightly larger but still small latency. We do not expect this to be problematic.

If you have any questions about this, come to TSG.

Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0

Version History

For version history and bug fixes please check here: http://www.psychopy.org/changelog.html

Google Mailing list

For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users

GitHub Repository

For requests / bug report / issues click here: https://github.com/psychopy/psychopy