sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,303
- Last Active
- Roles
- Administrator
Comments
-
Hi Andi, PyGaze is a library for creating psychology experiments that use eye tracking. So it's probably not what you're looking for. Are you trying to use an eye tracker as assistive technology (i.e. as an alternative for the mouse for someone who…
-
Hi, The eye tracker won't freeze if you sleep the experiment. That being said, you haven't specified what kind of eye tracker you're using. (But whatever it is: it won't freeze!) Incidentally, your script is an infinite loop, without any way to br…
-
Hi Oliver, Yes, you can register a clean-up function like so: def my_cleanup_function(): print('Done!')exp.cleanup_functions.append(my_cleanup_function) Hope this helps! Cheers, Sebastiaan
-
Hi, Could you describe your setup in a bit more detail? (Because I'm not familiar with SMI.) Are both monitors connected to a single computer, in which case this may simply be a matter of changing Window's display settings. Or are there separate co…
-
Thanks for testing, guys! Once I'm back in Groningen, I'll fix these issue and build a new prerelease. (Assuming that they're easy to fix, but I assume so.)
-
Hi Michel, (Quote) Not exactly, I think, but it must have something to do with the bounding box that is determined by the font renderer (which works in mysterious ways). This would be a good moment to try the prerelease of 3.2, which uses an entir…
-
Hi Michael, The slice operation takes a slice and discards all other rows, so that's definitely not what you want. The easiest solution is probably to add a column, say block, and use this to label the blocks. And then you use sortby block to make…
-
Hi, You cannot easily add a background image to a form, but a little monkey-patching will do the trick. Say that you have a file called my_background.png in the file pool and that your form item is called my_form, then the script below will accompl…
-
Hi BaaBob, (A quick reply without having fully read this discussion.) The sound_recorded plugin, which was created by @Daniel, is not as far as I know intended to be used from a script. However, if you search this forum for terms such as 'pyaudio r…
-
Hi, It's not entirely clear to me from your description what you want to do. Hoever, it sounds like you're looking for a way to add constraints to randomization (i.e. pseudorandomization). Is that correct? If so, then you'll want to take a look at …
-
(Quote) But I guess that Windows does give you a message along the lines of "python.exe stopped working", right? In that case, the Python interpreter crashes for some reason, which will be difficult to find out. However, what happens if y…
-
Hi, You might want to take a look at this discussion: * http://forum.cogsci.nl/index.php?p=/discussion/3453/help-opensesame-wont-load If you have further questions, could you post them there? Cheers! Sebastiaan
-
Hi Frouke, It looks like you have an old version of QProgEdit installed, which doesn't work with PyQt5. You can upgrade by running: pip install python-qprogedit Does that solve things? Cheers, Sebastiaan
-
Hi Ellen, I don't have any specific hardware recommendations. In principle, any reasonably modern system should be fine. Regarding good monitors, you may want to take a look at this discussion: * http://forum.cogsci.nl/index.php?p=/discussion/3408…
-
Hi Robin, The if-statement itself will not slow down the program. In most cases, long inter-trial delays are due to complex sketchpads and/ or inline_scripts. To reduce this, you could try one or both of the following: * Select a different backend…
-
@harsh_shukla This was the case in earlier pre-releases. If you download the latest, the droid backend should work again.
-
Hi Yasemin, Do you have the latest version of OpenSesame? That's 3.1.9 at the time of writing. This error looks familiar to me, and I think it was fixed in one of the recent maintenance releases. Cheers, Sebastiaan
-
(Quote) Yes, it is possible :wink: But why don't you give this a shot yourself first? Based on the info in this post, it's not that difficult to extend the validation process so that it includes a warning screen. It basically comes down to executin…
-
(Quote) That's correct—in that case it only causes a lag between trials. And thanks for sharing your code!
-
Hi, Python code should be in an inline_script item. What you're doing now is mixing OpenSesame script with Python, which (as you've noticed) doesn't work! This can be confusing, so I would first take a moment to read the section about using OpenSes…
-
Assuming that you're using the media_player_mpy plugin, you could do this by first setting the duration to 'sound' and then using a simple script that writes a message to the log file every time that a key is pressed. Also, in this example script, t…
-
Hi Robin, You cannot do this by entering something like 'joystick' in the duration field. However, you can set the duration to 0 and then follow the sketchpad by a joystick item. That's not so much trouble either, is it? Cheers! Sebastiaan
-
Hi Florence, I would approach this issue differently. What if you simply add two columns, one Word column that contains each word once, and one Color column that contains each color in the proportion that they should occur in the experiment. And y…
-
Hi Boris, Thanks for pointing this out! I have heard of the issue, yes, because it caused some problems in the labs at my department. (At least for those using E-Prime.) From what I've understood, this is an issue with Direct X, and doesn't affect …
-
Hi, To do this in OpenSesame 3.1 (and earlier), this indeed requires somewhat of a hack. Let's assume that you have a form_base called my_form, and that you save the rating response as the variable rating, then you could insert the following inline…
-
Hi, It sounds like the experiment file is corrupted, which can happen for any number of reasons. To try and recover the file, you could: * Download 7zip * Rename the experiment file to temp.tar.gz * Open temp.tar.gz with 7zip 7zip will probably c…
-
Good!
-
Hi, The touch_response item does quite a few things, so re-implementing it completely in an inline_script is inconvenient. However, what you can do is change the correct value of the last-recorded response. The following script, which should be in …
-
Hi Gunnar, What you're looking for is a dict. Right now you're creating a list of sampler objects, which makes it tricky to associate each sampler with a word (which effectively what you want to do). If you use a dict, you can use a word as the ke…
-
No, the break-if statement is evaluated only before a new cycle of a loop is executed. So it cannot break a trial off halfway. If you want to do this, you'll really have to use v3.2!