Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

sebastiaan

About

Username
sebastiaan
Joined
Visits
7,320
Last Active
Roles
Administrator

Comments

  • Hi Tom, It's best to ask the EyeTribe people to confirm this, but my guess is that: yes, the API is the same for the EyeTribe Pro as for the original EyeTribe, and therefore the EyeTribe Pro should work with OpenSesame. I think this because they de…
  • Hi Charlotte, I think there's nothing wrong per se, but you're just seeing a long preparation time that results from the many items that you have in your injected_delay_sequence. In OpenSesame, to ensure that timing during a sequence is as good pos…
  • Sure, it would be possible to create your own plugin that simply renders a specific form--because that's essentially what you want to do, right? Whether it's worth the effort depends on how widely you think the thermometer response might be used. Bu…
  • Hi Benjamin, It looks like a hard crash occurs when you try to initialize the joystick, both when using the plugin and when doing this through a script. This kind of crash is usually the result from a problem in the underlying libraries, Pygame in …
  • (Quote) This was indeed a bug, however in 3.1.2 this should be fixed. Could you verify that you've actually updated to the stable release of 3.1.2?
  • Hi, That's an interesting question. The best solution is probably to subclass libopensesame.widgets.button, and implement the desired behavior this way. The script below illustrates the basic idea. There is not any documentation for this--it's out…
  • Hi Lena, You created the experiment, or at least ran it for the last time, with OpenSesame 2.9.6. (You can see this by extracting the experiment file with a program like 7zip, and looking at the OpenSesame version at the top of opensesame.script.) …
  • @eduard is correct, of course. (You also mix up the name of the event, calling it event first and ev later.) But, just as a general remark, you can also use the for ... else pattern to deal with these kinds of nested loops, like so: while True: …
  • (Quote) You'll have to be a little more specific here, because in your example you're clearly not subtracting the first from the second digit. In any case, say that you do want subtract the first from the second digit, then you could do so with a s…
  • (Quote) Right, because (as I said) that's the format used by pygaze_log. But that's fine, because you can indicate in the EyeLink DataViewer that it should look for lines with var instead of !V TRIAL_VAR.
  • Right, so first things first: To run the experiment on an Android device, you must use the droid backend! You can find more information about how to develop experiments for Android here: * http://osdoc.cogsci.nl/3.1/manual/android/
  • Hi James, Thanks for pointing this out! I'll fix this soon. Cheers, Sebastiaan
  • (Quote) As of 3.1, OpenSesame comes with a full Python environment, based on Anaconda (or actually MiniConda). You'll see the Python interpreter python.exe in the OpenSesame program folder. So even if you're using PyGaze and/ or PsychoPy directly fr…
  • There was a problem with the upload tool, but it should be fixed now! It's the right-most item of the toolbar above the comment field.
  • (Quote) That's right, there is now an experimental variable called disable_garbage_collection which, when set to 'yes' (the default), causes OpenSesame to disable automatic garbage collector during the experiment, and explicitly do garbage collecti…
  • Oops, it was a permission issue: Regular members weren't allowed to upload files. You should be able to upload the experiment now.
  • Hi Michel, There have been some changes to the API OpenSesame 3, but it should be pretty straightforward to update your script. I actually forgot to include the issue that you're running into here in the list of important changes for v3. Essential…
  • Hi Agata, There are a few questions here. (Quote) So how you can run your PsychoPy script in OpenSesame? You can simply do this by inserting an inline_script as the only item in your experiment sequence, and then copy-pasting your script in there.…
  • (Image) You can just upload it by selecting an osexp file instead of an image through the attachment dialog (which, I admit, is a bit confusing).
  • (Quote) Like St Peter, who felt he was unworthy to be crucified in the same way Jesus was, and thus wanted to be put upside down. (Surprisingly courteous of his crucifiers to respect that wish, by the way.) Nicely symbolic, I suppose, given the wors…
  • Hi Wu, What you're seeing here is actually a bug in the append-new-item button which hides the real error message; that is, you're seeing an error message that results indirectly from not being able to load the media_player_mpy. Could you to add t…
  • After the sketchpad that you want to timestamp, you can insert a short inline_script with just this: from datetime import datetimevar.my_system_time = datetime.now().strftime('%d-%m-%y %H:%M:%f') If you do this, make sure that the duration of the …
  • Hi, To start with the first question. You give the following as an example of what should happen: 5 4 3 2 1 - 1 2 3 4 5 = 4 2 0 -8 -6 But I don't understand this. If you simply subtract the second numbers from the first ones, shoul…
  • Hi Morgan, The structure of your experiment is not really clear to me. Could you upload it (you can attach it to a comment) so I can take a look? Cheers, Sebastiaan
  • By default, yes. But that's not the syntax used by pygaze_log, so you need to explicitly indicate the PyGaze format in the Dataviewer. Maybe this should be made configurable in PyGaze though.
  • Hi guys, Just to avoid confusion: The timestamps that OpenSesame uses are not the system time, but some relative time measure that depends on the backend. (Such as the number of milliseconds since PyGame was initialized.) If you want to get the sy…
  • (Quote) What do you mean exactly? My script shows a mouse-contingent window (to be adapted for gaze). That's what you want, right? (Quote) That would probably work, but it would be more common to blit the distractors to win_img and then blit win_im…
  • Hi Adil, This may be as good as it gets. I'm not sure if the font renderer is able to write properly connected Arabic characters. But it's worth a last try. If I were you, I would try a few different fonts, and see if they all suffer from the same …
  • So this woud be correct, right? (Image) If so, then it works fine for me. (Although I do see problems with newlines, but that should be easy to work around.) What package of OpenSesame do you use, i.e. what version and operating system? And is p…
  • Hi, I actually misread your code: I thought you were just showing an image at the gaze location. But even a gaze-contingent window can be done in pure PyGame. It's maybe even easier than in PsychoPy, or at least the way you're doing it now. Here's…