eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Rob, Have you followed the beginner's tutorial? Defining correct responses is part of it. Basically, in the loop table of the test phase, you can set what trial type you have (foil vs. memory) and depending on that you can set a correct_response…
-
Hi Lea, What is the problem? Are the words not showing at all or are they presented for longer/shorter than 2 seconds? Eduard
-
Hi Mollie, Do you still need help with this question, or has it been solved in the other discussion you had with Sebastiaan? Eduard
-
Hi, First you have to define the variables before you enter the form loop. So in an line_script, do this: # ideally in the prepare phasevar.totalTrials = 0var.totalCorrect = 0 After the form you can add this code. var.totalTrials += 1if respons…
-
Yeah, if you need to recode them during the experiment, you can add an inline_script after the form with some if statements like this: if var.response == 'True': var.response = 1 # alternatively define a completely new variableelif var.response …
-
As far as I know, forms don't allow for key responses (all actions are click based), so you would have to implement this yourself, which is certainly possible, but maybe not very easy... Eduard
-
Hi, If you change the Opensesame source code, you should be able to change that message. To do so, find the file: libqtopensesame/runners/base_runner.py in the Opensesame folder. On lines 299 and 300, the pause message is defined. When messing wit…
-
Hi, Yes, I believe the syntax is this: =var.varA, which would then translate to [white]. Keep in mind that this only works for variables that are part of var. So, for example, var.variable would work, while variable, wouldn't. Does that make sense…
-
Hi, So what is then your question? If it is about the structure, I would put the initial adapting phase before the trial sequence, so that you can easily put everything in a loop/sequence with an S and an A phase. Eduard
-
Hi, I can't confirm what you say (simply because I don't know). A workaround could look like this (using inline_scripts): cv = Canvas()blank_cv = Canvas()kb = Keyboard()# define and shuffle the word listword = 'stuff'# define durations of each pha…
-
Hi Marsh, I don't have much experience with video playback and manipulation of that. With which library are handling videos? I think cv2 can be quite powerful. I don't know whether it is possible (as I haven't tried it ever), but your problem sound…
-
Hi Cai, Maybe you can email Fabian (email above). In case you haven't already done so. Good luck, Eduard
-
Hi, For some reason, your pasted code doesn't load into Opensesame. Can you also share the experiment? Anyway, I wrote a little script that should do what you are looking for. You just have to adapt it to your needs. import randomcv = Canvas()blan…
-
Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Here a link to a fi…
-
Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small ex…
-
Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small ex…
-
Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small ex…
-
Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small ex…
-
Hi Kayla, How do you present the circle? If it is a sketchpad, you can add another sketchpad to the sequence, that is identical to the circle, but includes the text message that you envision. The important details are that you include this sketchpa…
-
Hi Katherin, Try starting with the beginner's tutorial. This should give you an idea how to create an experimental structure, deal with conditions, etc.. Whether the structure of the tutorial is directly applicable to your task, I don't know, but w…
-
Hi Gérard, Mouse items work a little differently than Keyboard items. If you check out the documentation, you will see that the mouse item returns three things: which button was clicked (left, right), the position of the click (x,y) and the timesta…
-
Hi, Just add a column with the name trial_no and then that add as many rows as you need trials (numbering them starting at 1). Eduard
-
And here is the file. For some reason, I can't upload files. @sebastiaan: Can you check what is going on there? In the mean time, you can download the file here: http://www.filedropper.com/task2fix Eduard
-
Yeah, I expected that much. Luckily, I stored the file. Tomorrow I will upload it again. Thanks, Eduard
-
Hi Mans, (Quote) Attached an experiment that fixes that problem. Basically, add a inline_script after the stimulus in which all the keypresses are being collected in a list. How to properly log all of those depends on the shape you need your data t…
-
Hi Mans, (Quote) Attached an experiment that fixes that problem. Basically, add a inline_script after the stimulus in which all the keypresses are being collected in a list. How to properly log all of those depends on the shape you need your data t…
-
Hi, Try this: my_keyboard = keyboard(keylist=['c'],timeout=0) start_time = clock.time() while True: key, end_time = my_keyboard.get_key() if key != None: var.subj_click_rt = end_time - start_time break That is the basic structu…
-
Hi Hannah, If you add a variable to the block loop table that keeps track of the current trial number. You can use use that trial number to access the lists that you created before and define the variables per trial in your loop. For example, in t…
-
Hi Harrison, I vaguely remember there were issues with how Psychopy draws polygons and adjusts the penwidth. One work around would be to draw two rectangles, both filled but the top one slightly smaller and filled with the background color. Do you …
-
Hi Lawero, The forum is full of all kinds of code and forms. You can also check the tutorial on osdoc.cogsci.nl or the manual there. Particularly, this part is very helpful to understand how forms work: https://osdoc.cogsci.nl/3.2/manual/forms/cust…