eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Chris, Maybe this tutorial is something for you: http://osdoc.cogsci.nl/3.1/tutorials/capybara/ Cheers, Eduard
-
Hi, If you want to log variables, you can indeed to what Josh suggested. However, you have to use a specific format so that PyGaze recognizes the log message as a variable. exp.pygaze_eyetracker.log("!V TRIAL_VAR <var_name> %s" % …
-
HI Anupama, Be aware of the difference between appending to a list and extending a list (see here) So, when you do this: list = [ ] # as a sidenote, it is not wise, to call a list "list" as this might cause unexpected behaviour when you…
-
Hi Ellen, If Josh's suggestions don't help, you can also upload the experiment here, so that we can have a closer look. Eduard
-
Can you quickly upload your experiment?
-
Hi Vic, Did you remove the keyboard_response item from your trial sequence? As you are sampling for keypresses in the inline_script you don't need it any more. Once it is gone, it should proceed right away after either r or space has been pressed. …
-
Hi Vic, They line should have been key,time = kb.get_key(keylist = ['y','n']). Sorry, for the confusion. (Quote) Maybe, but honestly, I have never worked with repeat_cycles and I don't really know what it does. From its description however, I have…
-
You'll find a link to such a tutorial in the link I provided above. Or simple google for python basics tutorial.
-
A for-loop has the structure: for index in list: # do stuff# in your case:for i in range(40): start_time = seq_A_Rstart[i].show() key, time = kb.get_key() #wait for key press var.resp_time = time-start_time #log resp_…
-
Hi, I see now. What you had defined as stim was not the image, but already the canvas to which the image was drawn. so calling cv.image(stim) was trying to draw a canvas onto a canvas with the draw-image-function. So, instead of cv.image(stim), jus…
-
Can you copy the entire error message, please? I need more information, i.e. which line, etc... (Btw, I can't open your experiment due to this problem. Eduard
-
What is not working? kb = keyboard(keylist = ['f','g','h','j']) should be fine (sorry for the allowed_responses error)
-
Hi, Ah, I missed another little error in your code: You forgot to class the brackets in this line: kb = keyboard(allowed_responses = ['f','g','h','j']. So, it should be kb = keyboard(allowed_responses = ['f','g','h','j']) Eduard
-
Alright, I can see now. I'm not sure how to fix this, while keeping your structure as is (i.e. skipping cycles is a tricky business, which I try to avoid as far as possible). However, I think your goal can be rather easy accomplished, if you move …
-
Hi, I hope this suffices. The task is very simple (there is actually no task). I am sending triggers for cue onset, search display onset, and the response (and of course the 0 trigger to reset). Let me know whether you can/cannot work with that. A…
-
Hi, Three remarks: 1) Watch out that you don't add unnecessary whitespaces. A_path = pool ['0_A.tif'] won't work due to the space between pool and [ 2) Watch out to include brackets when you call a function key, time = kb.get_key won't work bec…
-
Hi, It is hard to tell what exactly went wrong without knowing the structure of your experiment. Would you mind uploading it? Or at least give a lot more information on your design/structure? Thanks, Eduard
-
Hi Vic, (Quote) Include an inline_script in your Pr_trial_seq somewhere before ITI and paste this code into its prepare phase: import randomvar.ITI = random.randint(650,750) Next, you set the duration of your ITI sketchpad to [ITI], and you shoul…
-
Hi, What would you want this experiment to contain? Unless, someone has lying an experiment around, I could adapt (basically simplify) one of mine. Eduard
-
Hi DCube, I doubt that adding merely adding another text_input is the sole reason why this worked suddenly. Especially, considering that your code above is not proper python code. Anyway, if it works now and you're happy with it, then everything is…
-
Hi Stephan, Not sure whether there is a solution that relies only on OpenSesame items and doesn't require some coding, but this idea was the first that came to my mind. So, I basically, you define all the sequences and important information in inli…
-
And also: There is an error in the inline_script "SSD_adaptive". In the second if statement, you have to replace and SSD >99 with and var.SSD >99. The variable SSD doesnt exist, but only var.SSD. Eduard
-
Hi Michael, If I were you, I would stick with csv files for recording data in OpenSesame (but also I prefer csv files in general). However, when you want to change the log file name, you can put this piece of code in an inline_script in the beginni…
-
If you initialize var.SSD in the inline_script, you don't need the column in the loop table. In fact, this is the reason, you get the error you are talking about as there is no specified value in most of the rows. Does this make sense? Can you try …
-
Hi Viola, If you record your key responses with a keyboard_item and a logger, this actual key that was pressed is recorded automatically (unless you tell Opensesame explicitly not to do so). In the logfile, you should be able to find the key by loo…
-
Hi rubin, the variables var.SSD and var.stop_after have to have the same name. Otherwise, you can't do the operation var.stop_after + 50. Like the error message says, the variable does not exist. Eduard
-
Hi Fabian, Maybe these discussion will be of any help for you: * http://forum.cogsci.nl/index.php?p=/discussion/comment/7616/#Comment_7616 * http://forum.cogsci.nl/index.php?p=/discussion/2340/opensesame-next-button#lates If not, please let us kn…
-
Hi Rubin, In the end of a trial sequence, you can add an inline_script and put this code in the run phase: # I don't know the variables in the SST task, so you'd have to change them if necessaryif var.correct == 1: var.SSD += 50if var.correct =…
-
Good to hear Celine! Sorry for not having come back to you earlier. On an initial attempt, I couldn't reproduce the error, but then I simply forgot...
-
Hi Dahm, I have to admit I don't really understand your design. Could you maybe explain again with a little more detail? Thanks, Eduard