DahmSF
For each answer i get from the forum i give an answer to the forum.
About
- Username
- DahmSF
- Joined
- Visits
- 730
- Last Active
- Roles
- Member
Comments
-
Hi boraste, Maybe you get an 'indentation error'? In python it is important to mind the spaces/tabs of the beginning in each line. In your code you need a tab at the beginning of the second line. Just go at the end of the first line and press 'ente…
-
Hi azrael, From the Manual: https://osdoc.cogsci.nl/3.2/manual/variables/ subject_parity Is 'odd' if subject_nr is odd and 'even' if subject_nr is even. Useful for counterbalancing. Have you tried [subject_parity] == 'odd'? Another option: [subje…
-
The example is in the experiment which is uploaded in the linked discussion. If you lift the button too early you get back to the beginning. --> There you need to keep the mouse button pressed, but you can easily change it to the space key on th…
-
It happened on a macos high sierra Version10.13.6, MacBook Pro
-
Hi sebastiaan and @Daniel, It was the same issue: Two stimuli after each other with the first only having a clock. sleep The workaround with any kb.flush() before clock sleep helped! The issue occured with 3.2.5 Kafkaesque Koffka using an old Mac.…
-
Possibly, it had to do with the operating system. Actually, it was never present on a certain MacBook. And there it never appeared in the logfile. However, i want to be independent from operating systems (one of the strengths of OS!) using participa…
-
For online testing you can try https://lab.js.org/
-
Hi Amihai, If you use an inline_script it may help to write a while loop, and ask for keylifts. You can find an example here: http://forum.cogsci.nl/index.php?p=/discussion/comment/14335#Comment_14335 Good luck Stephan
-
Hi Amir, i am not sure if that helps, but here some suggestions. Your operation += is not (yet) supported. Try to run just this code: total_correct_t += 1 Suggestion: Implement the variable beforehand (maybe another inline_script) var.total_corr…
-
Update: Actually, my workaround with the copy of the variable helped. Although not visible in the inspector, the values of the new variable Sex are logged in the logfile. However, the old variable sex is not in the logfile. Seems like a temporary va…
-
Hi Kevin, I believe you are looking for this: https://forum.cogsci.nl/discussion/4111/calculating-specific-accuracy-with-decimals Good luck Stephan
-
I shortened the script a little: button_ok = Button(text=u'Ok')#label_gender= Label(u'Your gender')checkbox_male = Checkbox(text=u'Maennlich', group=u'sex', var=u'sex')checkbox_female = Checkbox(text=u'Weiblich', group=u'sex', var=u'sex')# Build th…
-
Hi eduard, I just replicated the error on the second run (new day, same problem). Yesterday i also made like 10 runs, where it worked. I cannot say how often it occurs. I am using Win7, expyriment backend. The error also occured on Mac. Maybe it …
-
Hi Nicolas, You know where you downloaded it? If it was from the original OS website (looks like), then it is safe. Many firewalls ask you, whether you know the program. It is just in case you did not download the program deliberately. Don't worr…
-
Hi eduard, it is just in some sessions. If i repeat the session the variable usually appears in the inspector (and the logfile). The variable 'sex' is only coded once, so there is only one trial. It is logged at the same time as the birthday varia…
-
upload did not work...new try
-
(Image) Hi bal, I was planning something similar with touchscreen, but have not tested the mouse(visible=False) on the touchscreen yet. Lifting the hand from the touchscreen does work! :smiley: I'll upload part of my script. Maybe this piece of c…
-
The error occured on a Mac Book Pro Retina, OS X Yosemite 10.10.5. I was using the main run symbol (the single green triangle).
-
It would be nice to test the code in inline scripts by marking it, so that it runs only the selected part. Just the way it is already working for the output, but showing the stimuli like in the quick show. I imagine something that loads everything f…
-
Hi Deiniol, You may create your own variable: see here http://osdoc.cogsci.nl/3.2/manual/python/var/ And then show it: see here http://osdoc.cogsci.nl/3.2/manual/python/responses/ Maybe that helps? Stephan
-
Hi Marco, probably it's better to make just one loop and randomize within the loop, e.g. with variables. Maybe you shortly describe the difference between the loops. They look the same. Good luck Stephan
-
Hi lorena, use a feedback item. Here you find more information on this topic http://osdoc.cogsci.nl/3.2/manual/stimuli/visual/ Alternatively, you can also work with inline scripts. For instance, if there is some need to calculate a new variable (…
-
Not only when the cursor is made visible my_mouse = Mouse(visible=True), but also each time a new picture is presented the cursor is set to 0,0 (middle of the screen) in full screen mode. #full screen mode: sets the mouse to the middle on each clic…
-
Thank you for that solution. If you change the color, my workaround does not work anymore, because it logs var.Resp= 5 So i used your monkey-patch. :) Maybe it helps someone else who wants to assess educational levels. var.Phase='education'var.Sti…
-
Hi Gisel, in a new experiment. make a sequence. Put the inline_script and a logger item behind. That's it. Try the code if it fits for your porpuse. Then adopt it as you need it. The standard amount 100 keeps always the same as in the picture by …
-
Probably this can be done without inline_scripting too. But here is a way to do it with inline_scripting. space = keyboard(keylist = ['SPACE']) # your response on the keyboardlist_num = range(10) # or [1,2,5,7,13]ALPHA = [] #create a list with all…
-
Try this: RespKeys = keyboard(keylist = ['x','m']) # your responses on the keyboardvar.low=50 #starting valuevar.high=100 #starting valuefor i in [2,4,8,16,32]: Stim=canvas() Stim.text('Please select x for: '+str(var.low) + ' or select m for…
-
So the easiest and most convinient way is what i wrote you. 1. Save one big log file. 2. When the data of all subjects is collected, put all logfiles together. 3. Then delete the irrelevant rows and cols. Save it with a new name for researcher XY…
-
Nice, this works.
-
Unfortunately, it did not help. With xrange it stopped after i=58 With two seperate loops range(107) and range(107,214) it stopped after i=111 I tested the original range(214) twice and it stopped after i=115 For the new runs i closed OpenSesame and…