Avatar

Howdy, Stranger!

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

Supported by

eduard

About

Username
eduard
Joined
Visits
1,402
Last Active
Roles
Member, Moderator

Comments

  • Hi Johann, That's sounds weird and like a bug. Would you mind reporting an issue on github about that? Ideally including a small example script. As a fix, you could try to present a sketchpad between inline_script and media player. I don't have th…
  • Hi Johan, I'm sorry, but I can't open your experiment because of the parallel port init item. If you could remove it and upload it again, I could give it another try. Once at it, it'd be helpful if you could simplify the experiment as much as possi…
  • Does the error occur right in the beginning of the script, or only a certain times in the experiment? I'll have a look during the weekend.
  • As far as I know that is not possible. What exactly do you need though? The time until the first key was pressed? Or the response times for all presses? Eduard
  • Hi, Have a look at this part of the documentation, in particular the last example. The rating scale widget is what you want to use to create a Likert scale. Good luck, Eduard
  • Hi Johan, Can you upload your experiment together with a description of what it is that you want it to do? Then, I'll have a look on whether I can see what the problem is. And once your at it, can you also post the version of your libraries, in par…
  • As far as I know the answer is still most valid. That being said, there are also efforts to create a version of Opensesame that runs online, but it will still take some time before it will be released. Eduard
  • Hi MC, line 96 refers to the source code of Opensesame that implements the behaviour of the inline_script. I think, the relevant part of the stack trace that you can find in your code is first of all the line: item-stack: experiment[run].practice_l…
  • Hi Marie, What exactly does not work? Randomizing the positions, the order or the duration of the stimuli? And with what code are you trying it currently. Thanks, Eduard
  • Hi, I usually you use the procedure of initiatlizing a timer before entering a loop, on every iteration in the loop update the current duration of the block, and abort it once the limit is reached. Note that this won't necessarily abort the loop ex…
  • Of course that is possible. Just use a sampler item to play the sound, followed by a sketchpad that prompts the question that participants need to give their opinion on, and some sort of response collection (e.g. mouse_response, keyboard_response, t…
  • Hi Stephan, The problem is the line clock.sleep, followed by (). Unfortunately, we don't know why this happens. For now you can avoid it by being a little obscure. enter = keyboard(keylist = ['RETURN'])var.Resp_Perc_F= 20var.Resp_MT = 5000FB = Can…
  • Hi Josh, I have used a gaze-contingent paradigm in Opensesame, but with the 3.0.x version. You can download it from here. Most of the action happens in the trial loop and relies primarily on getting samples and make the experiment do certain things…
  • Hi, That depends on what exactly you want. If participants should respond within 5 seconds, you present a sketchpad (or whatever your stimulus is) and set its duration to 0. Next, add a keyboard response to the sequence that has the duration set to…
  • Hi, I myself don't remember exactly what will work and what not. If you browse the forum, you'll find quite a few discussions that cover questions regarding the new Tobii. Maybe you'll find your information there. Otherwise, maybe @Edwin can share…
  • Hi, Can you try whether this code does the trick: im[np.where((np.all(im == [0,0,0],axis = -1)))] = [0,33,166] (from here) Eduard
  • Hi Kim, What exactly do you mean? Could you elaborate what you need to do? In general, it is a good idea to add files in the file pool, and that add the file name of the files that you want to play in the sampler item. If the sound should be set d…
  • Hi Ema, Can you share a log file with us? Maybe also the experiment. Normally, the response time variable is stored as response_time, but maybe it got overwritten or something. Eduard
  • Hi Stavros, (Quote) Does it work if you use var.noise_rc? (Quote) Yes, one script should be fine. The exact implementation depends on what it is exactly that you want to present. But with the right if/else construction you should be good. Eduard
  • Hi, Does it work if you use this line: c.text('Regular text with a big <span style="size:96;">☺</span>') ? Eduard
  • Hi, We need more information to really help you finding out what is going wrong. So, maybe share your code, a screenshot of your sequence, or upload the experiment. If I had to take a guess, I would say the problem is that you haven't added a keyb…
  • Hi, If you use an inline_script rather than a mouse_response you should be able to avoid the flickering. Replace it with following lines: my_mouse = Mouse(timeout=20)my_mouse.set_visible(True)button, position, timestamp = my_mouse.get_click() D…
  • Hi, If you still have this problem, could you give more information on what happens? How are you trying to download it? Where exactly does it get stuck, during the download or during the installation? And what procedure are you following? Eduard
  • Hi, Sorry for the late replay. exp.pygaze_eyetracker.log() is what you want to use. For example in a structure like this: exp.pygaze_eyetracker.log("Begin trial") If you also want to send the timestamp on when this happened, you can use…
  • Hi stoney, YOu still have to make sure that the block loop is called again after the break. If you don't enter this loop again, then the experiment will just end. So eventually, you should have something like a nested loop structure. Eduard
  • Ok, I think this is an issue to do with encoding of the log file when opened in excel or something similar. So, it is not directly related to Opensesame. Normally, openesame writes comma-separated value files (csv files). So when you doubleclick on …
  • The most straightforward solution would be to store the choices of the participant in a certain file (either text, or a python pickle), load this file in the second script and change settings according to it. I recommend you check out pickles. The u…
  • Can you share one of your logfiles? I attached one of mine.
  • Hi Estelle, I ran the experiment and looked at the file, and both responses as well as response_times are present. (In Excel, they are in the columns "CS" and "CT". Can you doublecheck whether they are really missing in your log…
  • Hi, I don't know what exactly you want to do but line 17: if var.Comparison==1: is the problem currently. You created a numpy array that has 5 (NOC) items. Therefore, python doesn't know whether it is true or false when you compare it to 1. You eit…