sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,296
- Last Active
- Roles
- Administrator
Comments
-
Hi @LauraHV , Python has two different kinds of objects for representing text-like data. The first is a str object, which is what you would normally use because it can deal with non-ASCII text. The chr() function returns a str object. The second …
-
Hi @MicolG , This sounds like a version incompatibility. Is a different version of OpenSesame running in this lab? Or perhaps people have installed OpenSesame manually (for example through Anaconda), in which case the version of Pyglet, which is one…
-
Hi @Mojtaba , I'm not familiar with this device, but I suspect that, in addition to installing the Python libraries, you also need to install a separate set of drivers, which you can presumably download from the URL provided in the error message. — …
-
Hi @jhercon , It sounds like this is not a case of 'flushing' as such (this would mean cleaning the event buffer, which is a low-level operation), but rather of resetting some kind of variable that you use for a break-if statement in a loop . If so,…
-
Hi @reversemoonwalk , The main and possible only thing that prevents you from running this experiment on the desktop is that the inline_javascript items use some ECMA 6 syntax, which a recent version of JavaScript that OpenSesame doesn't support ye…
-
Hi @ksalluzzo , Yes, that's certainly possible. The trick is to link both buttons to experimental variables, say button_no and button_yes , using the var keyword when defining the button widgets. Next, you can use a run-if statement in the sequen…
-
Hi @gerhono , Would you confirm that, as a general rule, in this kind of setup, all the variables could be initialized in the prepare section ? Are there exceptions ? Yes, as a general rule initialization should be in the prepare phase. There are ce…
-
Hi @MarieMona , The second if statement is not logically correct, because you're checking that the x coordinate is both larger than (or equal to) 416 and smaller than (or equal to) 224. As a more general note, there is probably a much easier way to …
-
Hi @gerhono , For coroutines , the run-if statement is evaluated during the prepare phase (which I appreciate is a bit counter-intuitive and should be documented better). I'm guessing that you are defining the variable in the run phase of an item t…
-
It's lowercase 😉
-
Hi @gerhono , The keyboard_response item has a list of synonyms for keys. However, when you're checking the value of a variable in a Python script, then of course the match has to be exact. I would print out the value of var.response_Saisie_4 to s…
-
Hi @mattm , @sarah_s , and @eduard , Until recently, the implementation of GazePoint support in PyGaze was very poor, but this has been improved a lot. Can you try updating to the latest version of OpenSesame (3.3.12 at the time of writing) and see …
-
Hi @wdhany , This data format, which is non-standard, is simply not supported by EyeLinkParser, or at least not directly. In order for this to work, you need to subclass the EyeLinkParser and (mainly) re-implement the split() function such that i…
-
HI @Flavia , For me, as far as I can tell, everything displays normally, also on Firefox. Can you post a screenshot to show what happens exactly? — Sebastiaan
-
Hi @Flavia , Can you post the experiment here (or a simplified version that illustrates the issue)? Your problem doesn't sound familiar to me, and although I suspect it's not an issue with OSWeb per se, I would to double-check. — Sebastiaan
-
Hi @bbTokyobb , The OpenSesame log file is encoded in utf-8 , as described here: https://osdoc.cogsci.nl/3.3/manual/logging/#format-of-the-data-files When you open the file in a program such as Excel, LibreOffice, or OpenOffice, you can generally in…
-
Hi @fotisfotiadis , No this code is based on outdated version of OpenSesame. I would check out this discussion. I haven't tried it, but the code shown there by @Lara94 is for recent versions of OpenSesame. — Sebastiaan
-
Hi @JJT , I assume that you get the message "Python seems to have crashed (...)"? This can occur for any number of reasons, and since there is generally no clear error message, it's really hard to debug. First, I would take a look at the c…
-
Hi @Lia@lrvts , There are two things going on here: The steadily increasing presentation time results from the fact that you're drawing images on top of each other, instead of clearing the canvas (or creating a new canvas) before drawing a new image…
-
Hi @Annika , You're right actually. I never noticed this before, but what happens is the following: your images have an odd height and width. This means that when they're centered, they are centered on a location "in between pixels", if yo…
-
Hi @Annika , It's true that the psycho backend can make things look a bit fuzzy. However, this is only when running on the desktop. When running an experiment in a browser, things should not (and as far as I know do not) appear blurry. But browsers …
-
Hi @mark , The standard OpenSesame packages are essentially an Anaconda environment. Therefore, you should be able to install dlib through the conda packaging system: !conda install dlib -y See also: https://rapunzel.cogsci.nl/manual/environment/ …
-
Hi @lorinap , It's not entirely clear to me what you want to do exactly, and it what sense it currently doesn't work as you'd like it to. However, when it comes to specifying the allowed responses, you can do this by: entering the key names separate…
-
Hi @atporrini , You probably inserted this code into the Prepare phase of the script. If you insert it into the Run phase, it will get executed when you expect it to. See also: https://osdoc.cogsci.nl/3.3/manual/prepare-run/ — Sebastiaan
-
Hi @HuguesJ , Each item (or plugin) has its own var object, which is used to store item-specific information, but is not (easily) accessible from outside the item. The var object that you see in an inline_script item is actually part of the exper…
-
Hi @Kai , In older versions of OSWeb, <script> tags were ignored when they were embedded in an inline_html item. However, that should be fixed now. Can you try updating to the latest version of OSWeb (currently 1.4.12) and try again? https:/…
-
Hi @psych_progammer , That's correct, the fonts are pulled from the Google Font server. This is hard-coded in OSWeb, so there is no way to prevent this. Why would you want to prevent this, though? Are you afraid of participants being tracked by Goog…
-
Hi @eduard , @michele.marzocchi , and @Fab , Indeed, HTML is currently (OSWeb <= 1.4.11) not supported on Canvas objects in JavaScript. This is because of the way that text is rendered by OSWeb on Canvas objects and sketchpad items (using a li…
-
This should be fixed as of OSWeb 1.4.11. It was a tricky issue, which (as @Daniel_513@Daniel already suspected) did not have to do with lack of user interaction. Rather (if anyone cares 😉) it was due to Safari not being able to read audio from blob …
-
@tong You can update OSWeb independently, as described here: https://osdoc.cogsci.nl/3.3/manual/osweb/osweb/#upgrading-osweb