Avatar

Howdy, Stranger!

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

Supported by

Sylvain

About

Username
Sylvain
Joined
Visits
131
Last Active
Roles
Member
Thanked
11

Comments

  • Hello Kian, So you want series like this? Trial 1: Letter -> Number --> Letter -> Number -> Letter Trial 2: Letter -> Number --> Letter -> Number -> Letter -> Number -> Letter Trial 3: Letter -> Number -->…
  • Oh sorry asked the question too fast I found the solution by using the HTML codes > and <
  • Hello, I will not probably be able to help but I am curious: * if you separate your loop in two loops same issues? Like for 0 to 110 then from 110 to the end? * if you use xrange instead of range same issue? Sylvain
  • Hey, Well the issue is that if you put it at the end you lose the information on every trial (apart from creating a list I do not see any other way to log stuffs then, but maybe there is another option I do not know?). OK so I tested how long it…
  • Oh ok great thanks! However I uninstalled anaconda and for some reasons it is working again without the errors I got. Sylvain
  • Hey, Yeah I have also tried with the xpyriment backend and it is the same. But I have also tried the idea of Jonathan and he is right: by staying within a loop then the accuracy is much better. I wonder if it takes too much time maybe to write o…
  • Hello, When I click on Plugin and Extension manager I do not have the same windows as yours. Is it the same thing as the Python package manager? I do not have this. Oh ok I see well I installed fastnumbers now I do not have the first message a…
  • Hey Sebastian, Yeah it worked with PyPi but there is something I do not understand. Is opensesame relying on the Python version and libraries within its own path or within the path of the system? I mean is opensesame like a virtualenv? I am a…
  • Hello Kyran, I think this should work. Look at this example for the 3-back: import random letter = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'] random.shuffle(letter) n_back = 3 # define the possible slot where the repeated …
  • Apparently changing fontsize is doable: http://forum.cogsci.nl/index.php?p=/discussion/507/solved-change-backgrounds-colors-and-fonts-in-widgets But for some reasons I struggle to do it, for instance: text_OK = "OK" button_ok = Button(text=te…
  • Nice! Is there a way to change the fontsize? Thanks, Sylvain
  • Hello, I would say you can do it by playing with datamatrix, random and lists. For datamatrix see there: http://osdoc.cogsci.nl/3.1/manual/structure/loop/ http://datamatrix.cogsci.nl/ Just for you to see an example I join an example doing wh…
    in Loop Design Comment by Sylvain June 16
  • Hey, I do not know about the maxdist function but just one question can the first presentation of a repeated letter happen successively, like: ABCAB... (for the 3 back here for instance)? Best, Sylvain
  • Hey, Or why not just having two lists, the first one with the name of the canvas, and the second with the canvas() themselves? Like: from random import shuffle name_canvas = list() shape_canvas = list() index_canvas = range(10) for i in rang…
  • Hello, Take a look here: http://osdoc.cogsci.nl/3.2/manual/variables/ The "response_time_keyboardresponse" is the RT for a particular trial, while 'average_response ' computes the mean of every RT given for every trial (I mean at each n loop …
    in response time Comment by Sylvain June 15
  • Hey Lea, No I am talking about yout opensesame script. Just upload it here so we can see it here. Use this button on the forum:
  • Hello, I do not know it is answer your question but why not doing the inverse? x = 'NAME' var.Stim = x exec("%s = canvas()" % x) path = ... NAME.image(path) t = NAME.show() Best, Sylvain
  • Hey Lea, No I just mean the script opensesame .osexp you have right now. It is easier then to see your whole code and eventually add what could do the trick then. Best, Sylvain
  • Hello, Yes you can do it with DataMatrix: http://osdoc.cogsci.nl/3.1/manual/structure/loop/ http://datamatrix.cogsci.nl/ The strategy I use (but there might be something better) is to get an inline at the very beginning of my script wher…
  • Hey Lea, Could you just add your script this way I could see if I can manage to help you. Sylvain
  • I do not really know why it crashes otherwise if I understood what you want you could try that: from datamatrix import DataMatrix, operations import random # create a list to stock the element from the column of the datamatrix (ie Load_Item_Loop…
  • Hello, So if I understood you want to random one column while keeping the other constant? If so a stategy could be: * first you enter your initial matrix in a loop at the very beginning of your scrip (just to load it); * then you extract t…
  • Hey Sebastian, Oh ok great if you can implement this! Thanks! Sylvain
  • Hey Lea, Do you have a button Next or something for passing from an image to the other one or do you want the time between the onset of the image to the first click on the rating scale? Because surely your participants might want to collect their…
  • Hello, Usually I populate the loop by relying on DataMatrix (could send an example if you need it later) but first I would try what you are doing but adding var. to exp_list like using var.exp_list as the variable. Best, Sylvain
  • Hey Sebastiaan! Sorry I did not know that Canvas.copy() existed! It works perfectly! Thank you! Best, Sylvain
  • Hey guys, It is reminding me a little bit the issue I had there but with mouse response: http://forum.cogsci.nl/index.php?p=/discussion/4028/reseting-mouse-position-between-mouse-responses#latest Another way to fix it would be to create a gho…
  • Oh very nice that it works! Yeah I also do not have the icon but it is not really bothering! Best, Sylvain
  • Hey Renske, I am not sure if I understand it clearly but look. At the end of your sequence just enter an inline: with: # keep the response entered if it is equal to the target # otherwise set it at 'incorrect' if var.response != var.…
  • The latest version is the 3.2.4 could you just install this one and try to run the script I sent without any modification?