sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,303
- Last Active
- Roles
- Administrator
Comments
-
Hi Sylvain, This looks like a packaging bug in shapely. Have you tried installing shapely directly from PyPi, instead of through this direct URL? Cheers, Sebastiaan
-
Hi, In your first example, you're hardcoding the name of Canvas, which is NAME. Hence, you can simply do the following: NAME = canvas()path = ...NAME.image(path)t = NAME.show()var.Stim = 'NAME' But I don't think that this is what you have in mind…
-
Hi, The problem here is that you're preloading all Canvas objects. But I suspect that this isn't necessary. What exactly is the paradigm? Is it not possible to selectively prepare the Canvas that you want to show, as you normally would in a trial-b…
-
Hi Roelof, The error seems to come from scipy, more specifically the scipy.optimize module. If you import this module on its own, do you get the same error? Cheers, Sebastiaan
-
Hi Sylvain, Thanks for reporting this. No, you're not doing anything wrong—this is a bug! I'll fix it for the next maintenance release (3.2.5). For now, the only workaround that I can think of is to make sure that there are no nan values in the exp…
-
Hi CC, (Quote) It looks like the logger is called before the trial, rather than after, although I cannot tell based on your screenshots. The normal structure would be to have the logger come after the coroutines, rather than as part of it. If the l…
-
Hi Loes, There are many solutions to this problem, and the details of what you want to do are not exactly clear to me. (Try to provide a bit more detail in the future!). But something like the following should work. In an inline_script, assign fiv…
-
Hi, It sounds like you're trying to use a variable (number_low) before it has been defined, for example because you're setting the variable in the Run phase, whereas the sketchpad is created during the Prepare phase. However, that has nothing to do…
-
Hi Hadas, I don't think it's possible to change display scaling for individual applications, or at least I wouldn't know how. But I assume that this isn't the PC that you will use for actual data collection, right? So why not simply take display sc…
-
Hi Sylvain, The way to create a deep copy is Canvas.copy(), which works around the facts that not all parts of a Canvas are compatible with Python's copy.deepcopy(). Have you tried that, and if so, did you encounter problems with this function? Ch…
-
Hi Liat, What happens if you enter the following into the debug window? import numpy That will probably result in an error message. Could you post that here? Cheers! Sebastiaan
-
Closing as duplicate of #4166
-
Hi, You'll want to take a look at this discussion, which describes a workaround: * http://forum.cogsci.nl/discussion/4155/ Cheers! Sebastiaan
-
Hi Jay, Are you sure that you get the same error message on a fresh install? Because some of these packages are definitely in the default bionic repositories. For example python-pyqt5.qtwebkit should be installable right away; that has nothing to d…
-
Hi Golam, Good to hear that you figured it out. Perhaps you can share your solution for other members using (or planning to) the Emotiv headset? Cheers! Sebastiaan
-
HI Bruno, Yes exactly. Are you running on Linux (or perhaps Mac OS)? For some reason flushing doesn't work there, but I'm not sure why. On Windows it will. Cheers, Sebastiaan
-
Hi Christina, This depends on the eye tracker. What eye tracker are you using? Cheers! Sebastiaan
-
One way I can see around that is to make the text almost transparent, using the rbga() color definition. If you make the text completely transparent (rgba(0,0,0,0)) the bounding-box issue will re-emerge. But if you use an alpha of 0.01 it should loo…
-
Hi Javiera, Could you attach an experiment file here that illustrates the issue? Cheers! Sebastiaan
-
Right, I see. You can add a keyboard_response with a 0 ms timeout between the two sketchpads. That will flush pending key presses but not actually wait for a key press.
-
Hi SH, Indeed, the text is rendered as a bitmap that just fits around the text, and then the center of this bitmap is used as an anchor point. This can cause offsets, which is a known issue. For now, a workaround would be to embed both strings in …
-
Hi Mert, No I'm afraid that's not possible. The opensesam-autorun.yml allows you to bypass all start-up questions, but not only some of them. Perhaps you could integrate the two IATs into a single experiment file, and then integrate a selection men…
-
Hi Jay, Some of the packages that are listed as 'not installable' are definitely available in the 18.04 repositories. This makes me think that something went wrong with the software sources in the upgrade process, and that the failure to install Op…
-
Hi Sarah, It sounds like Python crashed, which is always due to a bug in one of the underlying libraries, and not to a problem in your experiment per se. (I.e. you're not doing anything wrong.) However, if the experiment ran until the end, then all…
-
Hi Bruno, The easiest way is probably to set the duration of the sketchpad to 0, and then use a keyboard_response to wait for the keypress. Cheers! Sebastiaan
-
Hi Marios, It seems to be an issue with the event buffer, i.e. an internal buffer that keeps track of key presses, etc. I think it overflows, although I'm not sure why (yet). As a workaround, you can flush the keyboard before getting a key. Or use …
-
Hi Marios, This loop is perfectly fine, in the sense that it's guaranteed to break when key == 'return'. Could it be that some other application steals the keyboard focus or something along those lines? Or perhaps the freezing occurs in some other …
-
Hi, As of OpenSesame 3.2, you can use full HTML in text elements. So the following will give you a green smiley in a text that otherwise that otherwise has the default foreground color. c = Canvas()c.text('Regular text with a colorful <span sty…
-
Hi, For this, you need to do a few things: * First get all possible orders of the four blocks. You can do this with itertools.permutations(). * Then get one order (from all possible orders) based on the subject_nr variable * Use this order to defi…
-
Hi Özgün, If you set the response timeout (which I assume is what you mean with response duration) to 245 ms, then any responses slower than 245 will be a timeout (i.e. 'None'). And because participants rarely respond within 245 ms, you mostly get …