Questions tagged [psychopy]

PsychoPy is an open-source python module written in python and c libraries for the generation of experiments for neuroscience and experimental psychology. PsychoPy includes Builder and Coder - two graphical interfaces to build experiments using the psychopy python module.

PsychoPy is an open-source Python module written in Python and C libraries for the generation of experiments for neuroscience and experimental psychology. PsychoPy includes Builder and Coder - two graphical interfaces to build experiments using the PsychoPy Python module.

Links:

See the project website for documentation and more information about PsychoPy.

All support now takes place in the psychopy forum

See Github for psychopy's source code. Contributions are very welcome!

521 questions
0
votes
2 answers

Creating image retention test im builder view

I just downloaded psychopy this morning and have spent the day trying to figure out how to work with builder view. I watched the youtube video "Build your first PsychoPy experiment (Stroop task)" by Jon Pierce. In his video he was explaining how to…
0
votes
1 answer

how can I draw pie charts in PsychoPy Builder

I want to create half a pie chart to use in an existing builder script and I'm not sure how to go about it. (its actually to implement a speedometer) Does anyone have any suggestions? I realise I'll need to dip into some python code. This old…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
0
votes
2 answers

Cannot change polygon 'size' every repeat in Builder

I'm using Builder v1.80.06 I can vary the position of a polygon every repeat easily enough e.g. I have a Positions list positions=[[1,1],[1.1,0.9],...] and in the 'Position field' have : $positions[0] and then change it's value in a code block…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
0
votes
1 answer

How to display more than one image on the screen in PsychoPy?

I am going to design a simple visual search task as my final term project for the Python Course.In this task participants were asked to search for the certain image (call it target) but i insert the 3 image always display the last image in the…
Zai-Fu Yao
  • 39
  • 6
0
votes
1 answer

Use PsychPy to activate MS Kinect (or other IR devices)

Is there a way to activate the MS Kinect out of PsychoPy? I am using PsychoPy for an experiment and I am using infrared (IR) cameras to capture participants movements. I want to automatically send a marker that is visible to the IR cameras out of…
makinate
  • 17
  • 2
0
votes
2 answers

Advice with editing python code

I am creating a neuropsychological task using PsychoPy which uses Python code. I am creating a GoNoGo task and have a list of stimuli (positive, negative, and neutral words). I have a set number of blocks (18) and the target and distractor valence…
Kate
  • 11
  • 2
0
votes
1 answer

procedure prematurely skipped in conditional feedback #psychopy

i exploited conditional branching in the builder with inline code to provide feedback after incorrect trials only by setting nRep of the feedback loop to 1 only after these trials. it works well, however, after a while the preceding procedure (trial…
0
votes
1 answer

psychopy keyboard answer breaks down

I am trying to write an Go_nogo Task in Psychopy. Even though I managed to write a script which is working, there are still a few things that make troubles. First, I present pictures of emotional stimuli (im_n, neural; im_a, emotional) and people…
Jakob
  • 35
  • 6
0
votes
2 answers

Syntax to random sample functions from a list in Python

I'm trying to use the random.sample function in Python (specifically, Psychopy) to randomly sample from a list of functions. Here is my code: from psychopy import visual, core, event, gui import random import string win = visual.Window([800,600],…
-1
votes
1 answer

Is there a place to run psychopy scripts online?

Is there any place where you can run an online experiment by uploading a psychopy script (Python 2.7)? Best, Simon
-1
votes
1 answer

Handling keypresses in Psychopy

I'm trying to design a behavioral task where I show one baseline picture for 3 seconds, and during this time, if a key 1 is pressed then the picture should be switched with a new picture (associated with the 1 keypress), if 2 is pressed instead then…
-1
votes
1 answer

if statement condition depending on response psychopy

In my experiment, participants have to make a series of ratings in a visual rating scale. First I initialize the screen and add the corresponding visual components. My variable recall creates the rating scale which provides 2 choices: "Yes" and…
-1
votes
1 answer

PsychoPy builder view key press- storing correct and incorrect answers

I am using builder view in PsychoPy 2. I have different loops of trials that come from an external excel file. For each trial there is either and X or a Z stimuli. For the X, participants are meant to press 'a', for Z they press 'l'. the trial…
-1
votes
1 answer

Psychopy: draw all images from a list at once

I have a list with 12 images. All of them have different locations (that is, they do not overlap at all). I want to draw them all at once. In other words, I want to see all 12 pictures at the same time on the screen. So far, I only got this: …
-1
votes
1 answer

Get index from tuples in list of lists

I get keypress and timing output as tuples in a list of lists. output = [[], [], [('m', 2.8167322647641413)], [], [('m', 2.8179350001591956)], [], [], [], [], [], [], [('m', 0.3381059524253942)], []] I manage to select all the non-empty lists…
1 2 3
34
35