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
1 answer

pseudo-randomize stimuli list in PsychoPy

I want to set up a paradigm in PsychoPy. Pictures will be presented one after an other for 4s each. There are 2 groups of pictures. All should be presented in a "pseudo" random order. How can I check that there are not more than 3 pictures of the…
bergwiesel
  • 63
  • 1
  • 7
0
votes
1 answer

How can I get out of the staircase loop in psychopy - adaptive oddball paradigm

I try to programm a relative simple adaptive oddball task using the psychopy coder. As I am relatively new to python I don't know how to deal with the following situation and hope that you could help: For the deviants within the oddball I wanna use…
Johannes
  • 11
  • 2
0
votes
2 answers

Cannot run standalone psychopy if PYTHONPATH and PYTHONHOME set for different python version

I thought that the standalone PsychoPy install could coexist happily if Python was installed separately on the PC to but I can't get it to, nor can I find any docs. (I'm using Windows 7) I have the lastest standalone version installed and the…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
0
votes
1 answer

inconsistency in data file (xslx) for keyboard input

I am trying to make an experiment in PsychoPy 1.81.00 in BUILDER view where 15 conditions (picked up from an XSLX file) repeat once each randomly. The user has to give 2 responses (through 2 keyboard components each running simultaneously for the…
Blueraaga
  • 93
  • 1
  • 7
0
votes
2 answers

Repeating a script in Python

I'm brand new to Python (psychoPy) and I have this script that I want it to repeat three times: i = 0 while i < 4: import random win.setMouseVisible(False) this_target = random.choice(first) if this_target == 1: k =…
y3trgfhsfgr
  • 467
  • 8
  • 17
0
votes
1 answer

textStim.text assignment functions different from setText() method call

My reading of the docs here is that I should be able to use mytextstim.text="test" and mytextstim.setText("test") interchangeably however I find that the direct assignment doesn't seem to be working. e.g. in code sample below #!/usr/bin/env…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
0
votes
0 answers

Memory error using sound stimuli in Psychopy

I wonder if anyone can see an error. I am running an experiment with approximately 220 trials. There are 3 auditory stimuli that I want to turn on for a variable amount of time and terminate when the 'space' is pressed (on some trials). At about…
Katie
  • 323
  • 3
  • 10
0
votes
2 answers

I want to generate image objects in random locations in psychopy

Is there are way to generate image objects to appear in random locations, with the constraint that one has to be a target that appears in one of the 12 possible distractor locations?
0
votes
1 answer

I am having trouble inserting an image as stimuli from the builder view.

I am trying to import an image as stimuli from an excell spreadsheet. It is at .tiff image and am receiving this eror "targ.setImage(stimuli) NameError:name 'stimuli' is not defined. I named the column in excell 'stimuli' and used…
0
votes
1 answer

Cannot use moviestim2 on Mac OSX 10.9.5

I program my experiments on a Macbook Pro with OSX 10.9.5, graphic card Intel HD Graphics 4000 1024 MB, with VLC Version 2.0.10 Twoflower (Intel 32bit). I used to present videos (avi and mp4 files, 60 frames per second) successfully with moviestim…
0
votes
2 answers

Unable to interrupt psychopy script, event.getKeys() always empty

I'm new to psychopy and python. I'm trying to program a way to quit a script (that I didn't write), by pressing a key for example. I've added this to the while loop: while n < total start=time.clock() if len(event.getKeys()) > 0: break #…
zorgkang
  • 45
  • 1
  • 8
0
votes
1 answer

Psychopy IO Gamepad

I am using Builder in standalone PsychoPy 1.80.07 in Windows. I'm trying to figure out how to create a Code Component to receive responses from a Logitech F310 Gamepad. Ideally, I would like to just use the triggers. I do not get any error code when…
0
votes
1 answer

different dtype for addData method

I'm trying to add a timestamp in my code using the TrialHandler.addData() methode. However, the precision of the underlying array makes it impossible to get the exact value I need. print(core.getAbsTime()) hand.addData('time',…
Olivier
  • 153
  • 3
  • 5
0
votes
2 answers

How do I comment / uncomment a block of code in PsychoPy Builder

How do I comment / uncomment a block of code in PsychoPy Builder? If I select a number of lines I can in/outdent it as a block using TAB and SHIFT TAB, I want to comment / uncomment the block in a similar way in the Builder interface (handy for when…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
0
votes
1 answer

ValueError: invalid literal for init() with base 10 - psychopy gamma correction PR650

I am attempting to gamma correct my screen and do a chromatic calibration using a PR650, Psychopy (latest version) and Mac OSx with Mavericks. When running the gamma calibration without the PR650 attached I don't get any errors, but with it…
Sarah
  • 1