eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi, You can try this suggestion: https://github.com/bastibe/python-soundfile/issues/380 If not, they say that this problem most commonly originates from an incorrect file path. To be honest, I couldn't make it work, during the few attempts that I j…
-
Hi Jordan, Could you also provide the code that you use? Eduard
-
Hi Jordan, You don't need to reinvent the wheel. The os package has many functions to operate with paths. You could do: filename = '/var/folders/sg/8vk99wn53bckkgs0j95ydyh0000gn/T/tmph0k3emlj.opensesamepool/Dutch_112.wav' import os sound_file = os…
-
Hi Jordan, Unfortunately this is not possible. Eduard
-
Hi Bart, I can't tell you what is wrong, but it would help if you would also post the error message. Perhaps the error message gives us some clues. Eduard
-
Hi, Keep it simple. Use an inline_script in the beginning of the experiment and include code=raw_input() . Then when the experiment starts (after providing the subject number), you (not the participant), can type into the debug window the code whic…
-
Hi Anaïs, You need to specify a longer duration for the keyboard response item. Probably 5500 ms, given the duration of your co-routine. Eduard
-
Hi @Anaïs, I encounter, for the first time, a problem to save the responses from the keyboard response. What is the problem? It doesn't save at all? Or it doesn't save the correct values? Eduard
-
Hi @lauraaaaaaaa, to receive detailed help, you need to provide more information. But the solution will be some version of putting a feedback item in your sequence after the response, set its run_if field to correct==0 and then drawing the thing…
-
Hi Gazelle, For video playback in inline_script you will probably need to use OpenCV2: https://osdoc.cogsci.nl/4.0/manual/stimuli/video/#opencv I am not sure whether you can, playback a video without blocking the pc. If you can, then the same proce…
-
Hi Kate, I think this has to do with this change in OS4: https://osdoc.cogsci.nl/4.0/notes/400/#important-backwards-incompatible-changes So, a list is not stored as a list anymore. To still include it in the logger, you can explicitly add it to the…
-
hi Evelina, Unfortunately I am not able to run the experiment in OpenSesame, or any other platform. Does anyone know if this is possible? What do you mean, you can't run it in Opensesame? Is not implemented or is it not possible to implement it? Ed…
-
Hi, circle = Canvas() circle.circle(x=0, y=0, r=100) empty_cv = Canvas() circle.show() clock.sleep(15) empty_cv.show() clock.sleep(SOA) Eduard
-
Hi Gazelle, The problems stems from mixing inline code with Opensesame items. In the inline_script you defined a canvas circle but you don't draw anything on it, so it remains empty and when showing it, the screen doesn't change. Instead you rely o…
-
Hi @Lorenzon, sounds like you're overburdening the variable wizard. How many factors with how many levels do you have? It is important to realize that the wizard tries to fully combine all levels with each other. So, you don't put all the combinati…
-
Hi @Chichi , you can put in the run_if field of the loop break_loop==True and initialize this variable as False (like you do correctly with wrong_response . Then you do if var.wrong_response >= 3: break_loop = True And that should be …
-
Hi, Not dedicated to TMS in particular, but depending on the ports of the device you might be able to use the parallel_port_trigger or the serial port items. Or you can just use plain Python from within an inline_script. That depends to some extent…
-
Hi Lorenzo, You probably need to change the decimal separator when importing the data into Excel. Use dot for decimals and commas for thousand separator. See here for more detail: https://support.microsoft.com/en-us/office/change-the-character-used…
-
Hi @ChrIm, Have you updated your Opensesame version? Generally, there is no guarantee that older experiments are compatible with newer versions, so if you want to replicate your old experiment it is best to download an older release from github an…
-
Hi, See attached experiment for a demo how you can accomplish this with Python coding. https://forum.cogsci.nl/uploads/467/AJC6F84YOHC9.osexp Essentially I create the stimuli once per block, and then access them one by one in the trials. When doin…
-
Your problem sounds to me, as if you simply need to move the logger one layer inside the nested loops. New lines to the data file are only added, if a logger is passed. If it is not included inside a loop but only after it, it will only log the vari…
-
Hi Sara, I have no solution, but a suggestion how you can debug. Try to time each operation in the loop to find out where the delay is.Opensesame's clock.time() will help with it. Other than that, it might help to separate reading and manipulating…
-
Hi, Nested loops (one for the trials, the second one for the word in the sentence) and every word in a separate column. See the attached experiment. Hope this helps, Eduard https://forum.cogsci.nl/uploads/009/6CL4YK2Y6Z9I.osexp
-
Hi Amber, if the two items are presented right after one another, you can start with the sketchpad and set its duration to 0 , and then the sampler with the duration set to the variable length of that sound bit, by setting it to sound . Hope this …
-
Hi Christin, A possible solution is interjecting a feedback item between mouse and keyboard response in which you present the same sketchpad again, but then add another visual object (in my example a green square) at the coordinates returned by the…
-
Hey, As for data logging, I am logging all variables but have put my inline script after the logger, so this could be the reason I am having an issue So, is this it? Does your script work if you move back the logger? If you want to keep track of in…
-
Hi Tryfonas, I am a bit confused about your code. It looks like you are computing the slowing after the experiment has completed (you read the data file). If so, I wonder why you use Opensesame for the computation and not regular python. If you do…
-
Hi Ornella, I think your best bet is to look for publications that cite pygaze and check whether they uploaded the experiment somewhere. Personally, I have not defined AOI in a way that you envision, but used something similar to check the gaze on …
-
Thanks for sharing!
-
Hi, Not 100% sure, but I think the variable var.count_trial_sequence is only updated once per block and not once per trial. Perhaps you need to use a variable within that sequence? In any case, you can easily create a counter variable within your…