Avatar

Howdy, Stranger!

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

Supported by

Roelof

About

Username
Roelof
Joined
Visits
65
Last Active
Roles
Member, Moderator

Comments

  • Right, my previous answers was incomplete (and to some extend incorrect), all the sketchpads are drawn in the prepare phase, this means that regardless of the 'run if' statements they will try to prepare and collect the stimulus number, only afterw…
  • Hi Vatsal, Right now all the letter are displayed regardless of the value of var.Stimulus_set. So when stimulus set is 4, and there are four letters in stim (be carefull with using stim and var.stim) and when we get to letter 5 there are no more le…
  • Hi Ling, it might be worth trying to use the function sampler.stop() after each sound, perhaps this solves the issue, if it doesn't it'd be helpful to know a bit more about the exact configuration of your experiment and when the error exactly occur…
  • Hi Andres, I have not encountered this error before; but it would be handy to know a little bit more about the data files and their structure, since most of the errors I have experienced were due to trying to merge files with different number of co…
  • Ah, yes, apologies, the write function apparently only likes string objects, you will have to transform SSD to a string: str(variable_of_interest) when reading it back in also make sure to tranform it back to a number by using either: int(F) for in…
    in merge files Comment by Roelof June 2017
  • This depends a little bit on how where/how your variable is initiated, usually the name of the variable (I guess SSD) in combination with '.var' should work. See if you can print the variable to the debug window by entering: print var.SSD in an i…
    in merge files Comment by Roelof June 2017
  • For merging data files there is a nice program available by Daniel Schreij: http://forum.cogsci.nl/index.php?p=/discussion/697/open-how-to-merge-my-csv-files-with-data-merger The program can be found at the bottom of this page: http://osdoc.cogsci.…
    in merge files Comment by Roelof June 2017
  • The sample has a function "sampler.stop()" which stops the sound, if you build this command into a while loop that checks for keypresses/mouseclicks you can execute it as soon as a response is detected, see the attached opensesame exampl…
    in sound Comment by Roelof May 2017
  • To my knowledge opensesame does not support multiple logger items. The only way I see that this might work would be to store the equations in a separate file perhaps all of them at once at the beginning of the experiment (using the file.write ) How…
  • Hi dsilva, You could log separate variables in a csv file in the following way: log_path ='C:\etc etc \\some folder'x = 1y = 3back_up_list = '%s,%s' %(x,y)f = open('%s\\question_file_subject%s.csv' %(log_path, exp.get('subject_nr')), 'w')f.write(b…
  • Hi Fabio, I understand the question; but I'm not entirely sure what is happening in your function: do you need numpy arrays or would it be fine if the values are just in tuples? I attached a short opensesame experiment that should explain the basi…
  • Hi Fabio, It looks like you are trying to define the variables inside the defintion of the function: all variables in the function definition are merely placeholders, so when you are asking for the function to evaluate 'p0' it does not exist. What …
  • Hi Kayling, You could put all the assignment values in a list that can be read by python and then extract from the list on the basis of the subject number so first in excel you might want to make a comma separated list that you can copy to python:(…
  • Hi Ramona, I am not sure how opensesame determines its variable order; but it can be relatively easily fixed after the experiment. You could use a small python script, read in your data and then manually define the order of your variables and save …
  • Hi Sebastiaan, That is true, however, the concern is that if I look back at the data in three weeks I will not remember which no is No or no, Eduard came up with a very simple idea which works smoothly: if exp.get('response_1') == 'no': exp.se…
  • Tried to install Qprogedit via command line, but since it only runs with version 2.1.0, it seems easier to copy manually since this 'conda install -c cogsci python-qprogedit=2.1.0' does not seems to work. Also 'conda install -c anaconda pyqt==4.11…
  • Yes, that seems a bit strange indeed, what happened if I did not specifically install the Pyqt4 with pip I got the same error as in the original question, (no module named PyQt4.4QtCore). After I installed it like mentioned it ran, but I am gonna gi…
  • for those interested in running "hestitant heisenberg" from source, the following commands seem to work conda install -c cogsci qscintilla2pip install -i https://pypi.anaconda.org/ales-erjavec/simple pyqt4conda install -c anaconda pyyaml=…
  • Ah, right that makes sense; I'll give it a shot, thank you for the quick feedback