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
2
votes
2 answers

Psychopy: bad contrast in blendMode add

I am using blendMode="add" in psychopy - ufortunatelly GratingStim contrast works well only when no text is drawn in the window. As soon as text is drawn - following GratingStims contrast looks as if 1 was subtracted from it (take a look at the…
mmagnuski
  • 1,249
  • 1
  • 11
  • 23
2
votes
1 answer

Binary representation and setting parallel port data in PsychoPy

I've recently started learning how to use PsychoPy, the psychopy.parallel module, and binary representation. I hope someone can let me know whether I'm understanding things correctly. On PsychoPy's website, it says these two functions set pins 2 and…
hsl
  • 670
  • 2
  • 10
  • 22
2
votes
2 answers

Mouse click/release psychopy

I am using the .isPressedIn() function see if the mouse click is in a target shape. However, whenever you click on the target shape, it will say the response is incorrect. However, whenever you hold the mouse button down in the target shape, it will…
lo_rabb
  • 109
  • 2
  • 10
2
votes
1 answer

Psychopy can import matplotlib but can't import pyplot though it's on my Mac

I'm having problems importing pyplot into psychopy on my MacBook running OS X Yosemite. I have psychopy v1.82.01 installed. My program contains: import matplotlib (which works) and from matplotlib import pyplot (which gives the following…
2
votes
0 answers

Psychopy does not quit at end of script when using sounds

I've encountered an odd bug using psychopy recently, where my script does not kill psychopy when it is terminating. This only happens when I add a sound to my routine and when I make psychopy generate a sound or play a sound from a file. In other…
Bastien
  • 362
  • 2
  • 7
  • 21
2
votes
3 answers

Inconsistent Import Error in Python

I just have a quick question about an error I've been getting when I try to import: from psychopy import gui So if I try to import this code in one program I have no problems, however, if I try to import it in another I get: "ImportError: cannot…
y3trgfhsfgr
  • 467
  • 8
  • 17
2
votes
4 answers

Shuffle two lists in the same order in python

I have a question about shuffling, but first, here is my code: from psychopy import visual, event, gui import random, os from random import shuffle from PIL import Image import glob a = glob.glob("DDtest/targetimagelist1/*") b =…
y3trgfhsfgr
  • 467
  • 8
  • 17
2
votes
1 answer

PsychoPy reopen window

I programmed a dot probe paradigm using the Standalone PsychoPy v1.80.03. After the dot probe I need a modified task that looks identical to the dot probe. I therefore pass the dot probe object in the 2nd task's constructor to re-use the window and…
Mario Reutter
  • 249
  • 2
  • 10
2
votes
1 answer

Creating a visible timer on experiment stimulus in psychopy

New to the forum, thanks in advance for any help you could provide. I have a series of .jpgs that are being presented to users as they study the info contained within. Instructions state that each jpg can be studied for a max of 120secs. I've…
adyo4552
  • 181
  • 1
  • 1
  • 8
2
votes
1 answer

PsychoPy Coder: Problems ending a loop with key response

I try to run an experiment in which the stimulus size can continuously (on a frame-by-frame basis) be changed by the participant (i.e. pressing/holding UP-key increases size, DOWN-key decreases size) and confirmed using ENTER-key. I found that using…
Boo
  • 23
  • 2
2
votes
2 answers

Non-slip timing in the psychopy builder

I understand that routines will use non-slip timing when the duration is fixed, as denoted by being green in the flow. The duration of my routine is fixed in a way, as ending the routine does not rely on a response. However, the duration of the…
Ceretellum
  • 21
  • 2
1
vote
1 answer

Using OpenCV and multiprocessing, how can I feed information from a variable in one Python script to another?

I am trying to have 2 scripts running in parallel and feeding one with the other. First I trained a model to decode different gestures. I followed the tutorial right here: https://www.youtube.com/watch?v=yqkISICHH-U That script opens the webcam and…
1
vote
1 answer

How To Prevent Stimuli Overlap Prevention?

new to the scene. I've created a code for a Visual Search task with a randomized number of Distractors (1/5/9) and a Target that may or may not appear (50% chance). The coordinates for the placements of both Distractors and Target are randomized,…
Markovka
  • 11
  • 2
1
vote
1 answer

Using the local pip version of a installed software (PsychoPy) to install a package

I am working with a software called PsychoPy, which runs on python and it brings it's own version of python and pip with it. I want to install a python package, so that it can be used with the version of python that is used by the software. I've…
Tobias
  • 148
  • 1
  • 7
1
vote
1 answer

Play MP4 with Psychopy

I'm having problems finding a solution to play a mp4 file with psychopy. Should I put the file in a special folder? How can I find this folder? And is there a special function to open then the file when running the code? I tried making a class, but…