Skip to main content

A framework for a rapid reproducible design, analysis and plotting of experiments in neuroscience and psychology.

Project description

Please refer to the online documentation for a more in depth explanation how to use the package.

What is it?

psychopy_ext is a framework for a rapid design, analysis and plotting of experiments in neuroscience and psychology.

Unlike PsychoPy, PyMVPA or matplotlib that are very flexible and support multiple options to suit everyone’s needs, the underlying philosophy of psychopy_ext is to act as the glue at a higher level of operation by choosing reasonable defaults for these packages and providing patterns for common tasks with a minimal user intervention.

Features

  • Easy to run and rerun everything

  • Neat project organization

  • Templates for building and analyzing experiments (behavioral & fMRI)

  • Simplified descriptive statistics

  • Pretty plotting

  • Automatic running (unit testing) of experiments

  • Automatic GUI and command-line interpreter

  • Custom needs? Inherit & customize: everything is a class!

  • Built-in simple models of vision (Pixel-wise difference, GaborJet, and HMAX’99)

Installation

pip install psychopy_ext

(no success?)

Quick start

First, find demo files in site-packages (where is it?). Copy them to your home folder or another location of your choice (but where you have write permission). Now check the demos:

  • For people who use a keyboard:

    • In a terminal, navigate to the demos folder

    • Type python run.py main exp run. Do the experiment!

    • Type python run.py main analysis run to see how well you did.

  • For people who use PsychoPy app:

    • In coder view, open run.py file from the demos folder

    • Click the green running man to run it.

    • Click on the run button. Do the experiment!

    • When done, choose the analysis tab and click on run to see how well you did.

  • For people who use a mouse on Windows:

    • In a file browser, navigate to the demos folder

    • Double-click click on run.bat

    • Click on the run button. Do the experiment!

    • When done, choose the analysis tab, and click on run to see how well you did.

When done with the demo, inspect main.py file to see how it works, and build your experiment using this template, or try more demos.

Current state of affairs

psychopy_ext is currently stable, meaning that I use it myself daily but there are some limitations:

  • fMRI analyses (fmri module) have not been thoroughly tested yet (no unit tests) but has been used extensively in my own research.

  • plots work well but might still require fine tuning and may be unable to handle missing values etc.

Future roadmap (a wishlist):

  • README generation with the most common commands

  • Automatic summary of typical commands for CLI

  • More robust command-line operation

  • Browser-based project management tool

  • info and rp should become classes with tips, lists etc

  • Full fMRI preprocessing support (maybe)

  • Generate full papers via Open Science Paper and PythonTeX

  • Force metadata by turning exp_plan into a class

  • Integrated Bayesian statistics

Dependencies

Required

  • Python 2.6+ (but tested only with 2.7)

  • PsychoPy 1.79.01+

  • pandas 0.12+

  • docutils (technically it is not mandatory but it will allow rendering docstrings on screen by the exp class)

  • svgwrite (it’s used to export stimuli to SVG format, so it’s also not super mandatory but given its pip-installable, why not?)

Optional

License

Copyright 2010-2014 Jonas Kubilius (http://klab.lt)

Laboratories of Biological and Experimental Psychology, KU Leuven (Belgium)

GNU General Public License v3 or later

Included external packages and functions (covered by a compatible license): combinations, combinations_with_replacement, OrderedDict, HMAX, GaborJet

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

psychopy_ext-0.5.3.zip (2.7 MB view details)

Uploaded Source

psychopy_ext-0.5.3.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psychopy_ext-0.5.3.win32.exe (557.0 kB view details)

Uploaded Source

File details

Details for the file psychopy_ext-0.5.3.zip.

File metadata

  • Download URL: psychopy_ext-0.5.3.zip
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for psychopy_ext-0.5.3.zip
Algorithm Hash digest
SHA256 7e4e5b41a4591ed8edaa51669701d75124d32869a2658baef32005f4d030aaba
MD5 6041e465c12e77641fb7ac1f9d272ce9
BLAKE2b-256 a7107dd909c10a7ba6cf0b1abc43f58964c844c64f32e7e3f880c13f4aeca778

See more details on using hashes here.

File details

Details for the file psychopy_ext-0.5.3.tar.gz.

File metadata

  • Download URL: psychopy_ext-0.5.3.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for psychopy_ext-0.5.3.tar.gz
Algorithm Hash digest
SHA256 7b0343ea20c8795670525aa672bfee21dfa1d9b1a3acde39e71b1cee2b43b686
MD5 2688a2cc247b893bd3da85cea25d5385
BLAKE2b-256 1d14a9c97dcf8fa414d5a2c1a08de366ef1c0e4ba2c35234daa1f3db9321ebfa

See more details on using hashes here.

File details

Details for the file psychopy_ext-0.5.3.win32.exe.

File metadata

File hashes

Hashes for psychopy_ext-0.5.3.win32.exe
Algorithm Hash digest
SHA256 e9b7e5c23a0ebb127eb85acb0cf0eb42251f780d89224b584d9da25b55429d5b
MD5 e063160fa5ba0da0620c5e095ce195fd
BLAKE2b-256 147d762724edba06c58e989c8a978944617d337cdcdcb221e55191d89edd7cbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page