sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,303
- Last Active
- Roles
- Administrator
Comments
-
I don't have any personal experience with MediaLab and DirectRT, but perhaps you can just give OpenSesame a test drive and share with us what you think? And if you have any specific questions about functionality, please let us know. Cheers, Sebast…
-
(Quote) This (again!) appears due to a mix-up between the prepare and run phase. The script updates the credits during the run phase, but the sketchpad is created during the prepare phase. Therefore, the contents of the sketchpad will 'lag behind', …
-
If I understand correctly, you could simply add a variable called 'match' to the block_loop and set this to 'yes' for half the trials and to 'no' for the rest of the trials. Then you use this variable in the inline_script to check whether you want t…
-
It is simply the script pasted below my first comment in this discussion. You can also get it from pastebin: http://pastebin.com/iMCvFJuX
-
These lines: plugins.py(138).plugin_property: Failed to parse /home/frouke/.opensesame/plugins/form_multiple_choice/info.json Suggest that there is something wrong with the info.json files that contain the information about some of the newer plug-…
-
Good to see some more input! (Quote) @Maarten Yes, this would also be an option, I think. And it might be easier than writing an interpreter, I'm not sure. Also see Eoin's suggestion, for another possibility (maybe?). (Quote) I think the overlap w…
-
Hi Frouke, The easiest way to find out what goes wrong is by running OpenSesame in debug from a terminal, like so: opensesame --debug This way you will see the actual Python exception (please post), and we should be able to figure out what's wron…
-
Hi, (Quote) It sounds like the file is corrupted for some reason. What you can do is try to open the file with a tool such as 7-zip. The .opensesame.tar.gz format is simply a compressed file, more or less like .zip, and programs like 7-zip can read…
-
Hi Michael, I think the most practical implementation would be entirely client side. As I understand your schematic, you envision a Python-based runtime environment that runs on a server, prepares canvases etc., and maintains a connection with the …
-
Looking at your scripts, I think the problem is simply that you have not used exp.set() to make the variable Response available elsewhere in the experiment, such as in the logger item. Basically, you can set the form response as the experimental va…
-
Ah right, I think I see what you're trying to do. Basically, you could solve the problem as follows: * Create a list of indices that belong to points1 and points2. This is just a list that runs from 0 (the first index) to the length of points1 - 1 …
-
Hi Frouke, This is due to your version of Python, which is slightly outdated. The decode() methods only accepts keywords as of Python 2.7, and (based on the output) you are using Python 2.6. Assuming that you don't want to upgrade, you can simply …
-
Hi Ollie, Could you be a bit more specific? How exactly are you collecting responses, which variables do you want to log and which variables are missing? Cheers, Sebastiaan
-
Yes, you would need to implement this through a script. There is a joystick plug-in for OpenSesame, but it will not allow you to use multiple joysticks. On the PyGame website you will find some example scripts: * http://www.pygame.org/docs/ref/joys…
-
The method index() gives the position (starting from 0) of an element from that list. For example l = ['a', 'b', 'c']print l.index('b') # Will print 1, because the 'b' is at position 1 (starting from 0) In your case you are passing a number (i.e. …
-
It should be no problem to connect multiple joysticks: * http://pygame.org/docs/ref/joystick.html With response boxes it depends on what type of response box you are talking about, but unless it emulates a keyboard or mouse I think it should be fi…
-
Hi Allison, The error occurs because position is None when a timeout occurs. Therefore, you will get an error if you try something like position[0] after a timeout, even though this works fine after a response has been given, in which case position…
-
(Quote) I have never used fixation updates myself (I generally poll gaze samples), but based on the manual this does seem like it should do the trick. The FIXUPDATE events should also appear in the .edf file though. So if they don't, I would check o…
-
Crosspost! ;-)
-
Hi Wouter, I don't think that having two seperate mouse cursors on a single PC is possible in general, and it for sure won't work with any of the OpenSesame back-ends. (You can attach multiple mice, of course, but they will simply end up controllin…
-
Hi Maxime, Interesting project! So basically you have freedom, as long as it's not too expensive. Tablet - computer via WiFi or ethernet I think I would link the tablet to a computer (maybe a cheap netbook). This can be done via WiFi or via an et…
-
You are trying to use a text element in a sketchpad to show a polygon that you have created in an inline_script! # Create a canvas objectfrom openexp .canvas import canvasp_trial_display = canvas(exp)# Draw a polygon on the canvas. This modifies th…
-
Hi Lee, Right, I see. The problem is not really related to negative numbers, but to the way that you shuffle the lists. Basically, random.shuffle() shuffles a list (or numpy array in your case) in place. This means that the list that you pass as an…
-
As Edwin says, your temporal precision will still be measurable in tens of milliseconds, which I imagine is fine for food rewards. More generally though, you don't provide enough detail for us to make any specific suggestions! * So you have a cust…
-
Hi Maxime, I just noticed something pretty crucial! The Python implementation for Android (pgs4a) does not include the pyserial module. Therefore, on Android it's not possible to communicate with the Arduino via the USB emulated serial port. There…
-
Hi guys, Great initiative! I'll post a notification on the documentation site as well, to attract some more respondents. Cheers! Sebastiaan
-
Hi Bjorn, I forwarded your post to Daniel, who develops the media_player_vlc plug-in. (Quote) In principle, I think that this should work fine. I don't know the details of how Windows runs on a Mac, but I believe that there is some kind of virtual…
-
Hi Lee, (Quote) Ok, so the problem is simply that you want to read negative numbers from a text file, is that correct? This is straightforward with the function np.loadtxt(). Let's say that you have a file called input.txt, which looks like this: …
-
Hi Bjorn, (Quote) It sounds like the media_player_vlc.py file is actually an HTML file, and not a Python script. How exactly did you install the plug-in? Did you right-click on the files on GitHub and select 'save as'? In that case you will not hav…
-
(Quote) What kind of problems are you running into, if I may ask?