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
4,949
Last Active
Roles
Administrator

Comments

  • Hi, There are two ways to do that. The first would be to simply set the repeat value of the loop to some value < 1 so that only a selection of cycles are executed. The second would be to use a break-if statement to stop when the counter of the tr…
  • Hi Eva, The first step would be to figure out how the TriggerBox sends signals to the stimulation PC. Is it also connected through a serial-to-usb converter? (I suspect so.) If so, then the next step would be to figure out what kind of message the T…
  • Hi Marios, If my understanding is correct, it's up to operating system to decide how touches should be translated to mouse clicks (for programs, such as OpenSesame, that don't have dedicated touch-screen support). And this can differ. For example, h…
  • Hi, This is due to a bug in the OSF extension, related to non-ascii (Chinese, probably) characters somewhere in a file path. This bug has been solved, but the fix isn't bundled with OpenSesame 3.2. So there's two options: Get the prerelease of OpenS…
  • If you don't want the jitter to be uniform, then I assume that you want to sample the duration from a gaussian distribution, but specify a minimum and a maximum value as well. To do this, I would use a simple inline_script like the one below. For o…
    in Jitter Comment by sebastiaan February 20
  • Hi, If you want to sample uniformly between 1100 and 4600, then you would indeed put the duration to the mean of both, which is 2850, and the jitter to 1750 (i.e. the difference between the mean and the minimum and maximum values). Does that clear t…
    in Jitter Comment by sebastiaan February 14
  • Rapunzel is nice, but i think i will stick with PyCharm/R studio for now :-) or maybe i missed its point.. it's like python/R IDE, right? Yes, exactly. Of course there are many great editors out there, but my goal is to find a niche for Rapunzel as …
  • I took the latest prerelease as you suggested and it worked like charm! Also with python.exe, didn't need to change it this time. The new version looks great! thank you for the improvements. :-) python editor is complaining about over-identation, ho…
  • Hi Lena, I'm not sure about the Anaconda errors. I don't think they're directly related to OpenSesame. Anaconda completely and it worked, however once opened it shows: Kernel died, restarting in the console. That usually happens. I think it's someth…
  • Hi, I suspect that the problem lies somewhere in the logic of the experiment, and not in that the keyboard_response accepts non-allowed key presses. Could you attach the experiment here so that I can take a look (or a simplified version of the expe…
  • I think the longer times may also be the preparation time for the next trial and have nothing to do with the logger. That's probably it, yes.
  • Hi Paul, If I understand correctly, the only thing you need to do is to put the sampler with the music at the start of the experiment sequence, rather than in the trial sequence. That way it will start once, and keep playing in the background while …
  • @intanwardhani Regarding the EyeLink, the main issue is that PyLink is not built for Python 3.7, which is what OpenSesame 3.3 uses when based on Python 3 (i.e. the default). The most recent build (which you need to download from the SR Research foru…
  • Rapunzel is also very nice, gives some more nice feedback than spyder. Thank you :-)
  • Hi Intan, Thanks for testing this! Regarding points 1 and 2, I'm going to try this in the EyeLink lab myself first. The new fixation plugin on OpenSesame 3.3 does not work and throws a controls error (I forgot to save the error traceback). Thanks, I…
  • Hi, There are a few things wrong with this line: if var.response == (4 or 5 or 6 or 7) First, it should end with a : . So that's where the SyntaxError comes from. (Without the colon it's not valid Python). Then, the expression (4 or 5 or 6 or 7) me…
  • @Mkengine You have asked the exact same question in this post. Please don't do that in the future, and help us keep the forum clean!
  • Hi Lena, My guess is that if you view the system environment variables (in the Windows settings), and then go to the PATH variable, that you will see entries related to PyCharm. If you remove these, your OpenSesame environment should work as expecte…
  • Hi Marcus, That's an interesting scenario. As I understand it, the main issue is to collect two key presses, and to abort the coroutines when this is done. Collecting two key presses is relatively easy: you can have two keyboard_response items (let…
  • It's difficult to say where this behavior comes from in window mode, but since fullscreen mode is (at least usually, because these things are very system-dependent) fundamentally different from window it's not that strange that things work fine in f…
  • Hi Matt, Is there any further integration that needs to be done on the OpenSesame end? No, PyGaze is now bundled with the prerelease package of OpenSesame 3.3 based on Python 3.7. So if you download that, you can use it right away. (That being said,…
  • Hi Bob, As of OpenSesame 3.3, the GUI controls of items are not created immediately. Rather, they are loaded in the background or (when you activate the item before the controls have been loaded) at the moment that they are first shown. This improve…
  • Hi Bob, Yes, you can install it from the `rapunzel` ppa! - https://osdoc.cogsci.nl/3.3/download/#ubuntu Cheers, Sebastiaan
  • Hi Leo, Thanks for bringing this to my attention, because this definitely should be clarified in the documentation. But yes, it's as you say: the var object automatically decodes bytecode strings to unicode , assuming utf-8 encoding. Cheers! Sebas…
  • Hi Leo, Yes, you're correct. In Python 2, the var_store automatically decodes str objects to unicode objects. So this: var.myString.decode(u'UTF-8-sig') Is calling decode() on a unicode object. What happens in that case is a bit strange. Python…
  • Hi Intan, For now, the plan is to keep building also a Python 2 package, even though it won't be the default anymore. Obviously, the ideal scenario will be that PyGaze (which is the only package still not Python-3 compatible) is finally updated, @Ed…
  • Good to hear!
  • Hi Paula, Right, I see! The mouse doesn't need to be calibrated, so that's why the calibration (which is device-specific) is ignored. However, the simulation will give you simulated gaze position, etc. So for example if you use a pygaze_wait item t…
  • Hi Laurie, In principle you should be able to develop the experiment on a Mac and then run it on the Windows tablets without any issues. However, computers are computers, so please do check that everything works as expected! Cheers, Sebastiaan
  • Hi Stefanie, Yes, you can do that by adding a shuffle operation after the weight operation! See also: https://osdoc.cogsci.nl/3.2/manual/structure/loop/ Cheers! Sebastiaan