eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Lucky you, there is a manual that explains it: https://osdoc.cogsci.nl/3.3/manual/python/pool/ Whether text or images, it's all the same for this problem here. Hope this helps, Eduard
-
Hi, I run the code a few times and every time it took 1-3 minutes to get a correct list of numbers That is probably because your restrictions are too strict. Like that, the while loop needs many iterations before it got a solution that works. You c…
-
Hi Vanessa, Yeah, I see. You would need to extract the individual RGBA values for each pixel from your canvas. I had a quick look, but couldn't find an easy way to extract these pixels values from a canvas. @sebastiaan is there an easy way? It woul…
-
Hi Tali, if the math questions and the stroop trials should be randomized independently from each other, you can't do this in the GUI, but have to program it directly. It isn't that complicated though. Something simple like this will do: import ra…
-
Hi, the accuracy calculation will only consider the last response, so I think, the third keyboard response should overwrite the second one if it occurs (and no logger/feedback happens in between). Have you tried it out? Maybe play a few trials and…
-
No, it isn't. It will work just as well with randomized sequences. I used sequential just for demonstration. If you choose randomized, you must count whether it is indeed the 5th (I think I chose the 5th) trial that the break follows on.
-
Hi Lajov, See the attached experiment for an example how to implement a break half way a sequence. Hope this helps, Eduard https://forum.cogsci.nl/uploads/421/FQFA4PRTTNXE.osexp
-
Hi Vanessa, Have you seen this discussion: https://forum.cogsci.nl/discussion/8479/show-backdrop-image-on-eyelink-host-with-pygaze It sounds like @Jessica Bourgin managed to set the backdrop fine. She also shared the code that worked for her. Id…
-
Okay, the problem is are those [variable] statements in the text_input. Seems like that syntax is not supported in text_input forms (or forms in general, maybe). Can you confirm/correct that @sebastiaan? Unfortunately, I also can't think of an easy…
-
Ah, this is good to know. Could you reupload your experiment? The link doesn't work anymore.
-
Hi Stone, when things seem very complicated to implement it is often a good indication that the approach is not ideal. In your specific case, you shouldn't try to dynamically generate a loop table (I don't even think this is possible). Instead you …
-
True, for this use case I wouldn't use the loop table, but implement it directly in an inline_script. For example: import numpy as np def invalid_reps(numbers): three_idx = np.where(numbers == 3)[0] three_dist = np.diff(three_idx) if any…
-
And the version of Osweb? Can that be the problem? Nah, I do the same.
-
Yes, that worked. I tried the experiment, but I don't get your error messsage. How do you start the experiment in the browser? And which version of Opensesame and OSweb are you running? I do get another error though. One that seems to originate in …
-
Hi Carlotta, In all inline_scripts, change what you have to var.cursor_y_click_central = var.cursor_y var.cursor_x_click_central = var.cursor_x Does this help? Eduard
-
Hi, You could add a variable to the loop table, in which you have only two values, e.g. target and distractor. Fill the table such that all the 3s have one value, and all other numbers have a different value. Then you can use the mindist constrain …
-
Hi Vanessa, Unfortunately, I am not familiar with this approach, I usually just use the Pygaze plugins (or the underlying functionality, respectively) in Opensesame. Have you tried them? Eduard
-
Hi PariShad, You could call it var.dropped_element and then the logger would automatically, save the entire dictionary. If you want each variable in that dictionary as separate column, you could do for key, value in dropped_element.items(): va…
-
Hi Elien, Can you share your experiment? Thanks, Eduard
-
Hi Sc123, In theory two response items in a sequence is fine, but you need to adapt the general procedure a bit, or you will run into problems. Generally, responses will be overwritten every time you call a keyboard_item, so if you have two keyboar…
-
Hi Vivienne, When you look in the log file, do the values in the correct_response and response columns match? Then it'd be weird that you have 0% accuracy. Could you share (a small example of) your experiment? Eduard
-
Hi Hazel, the difference between images and videos (and gifs) is that former are static, the other dynamic. The slideshow experiment updates the screen only a single time per image. For pngs, etc. that is perfect, because the image never changes. F…
-
Hi Vivienne, You want the triplets in the same file with every word in the triplet being one column. Then you can simply set the order in the loop table to random and have randomized triplets. How do you want to present the words of a triplet? Sequ…
-
Hi, Not an expert on mousetracking here, but still my 2 cents. Any of those measures deviation from a reference in slightly different ways, as such I don't think it makes a lot of sense to link them to specific cognitive constructs. The key differ…
-
Hi Teresa, could you share your experiment? Then we can try to find out. Bottom line, your counterbalancing based on subject number works when you try it in the browser, but not when you upload it to Jatos? Right? Eduard
-
Hi Wenting, I don't know Mousetrap, but if mt_data is just a data frame, you can make a copy of that data frame where you remove all rows except the ones that you keep. If you want to keep every tenth trial, this procedure could work: 1) Copy mt_da…
-
Hey Dayna, I suppose this refers to something in JASP, so I will move this discussion there. Good luck! Eduard
-
Hi Gio, I thought that "clock.time()" recorded the amount of time an event takes No, clock.time() returns the current time (relative to the start of the experiment). So it tells you when something happens, not how long it lasted. To get a…
-
Hi Gio, from libopensesame import widgets It is probably not necessary anymore to explicitly import widgets. It should automatically be available in the workspace, but best to try it out, and decide based on whether the experiment crashes whether y…
-
Great! Good to know and good luck testing! Eduard