nsriram
About
- Username
- nsriram
- Joined
- Visits
- 17
- Last Active
- Roles
- Member
Comments
-
It seems that your requirement for the test target to be consistent can be achieved by creating the appropriate python code before running the loop. So it is not a matter of "saving" anything to a folder but only one of creating the right …
-
Yes, I did the same thing functionally (using a while loop in script) to achieve this. And then I saw your solution above. Thanks. Because of inline scripts, usually there is a way to make the system/task behave in line with requirements. And that…
-
Before making widespread changes, we can document where the problems are and whether existing design patterns can be used. I am quite happy with the scheme I am using (although my sketchpad contents are decided before the loop starts and not vary a…
-
Yes, this got resolved. See the lessons learnt post for a generic description.
-
Other two are related and also can be considered as solved.
-
Figured this out. Run a while loop outside the loop running the trials. Main trickiness is used global variables as performance index. Understanding scope was a bit tricky.
-
The basic issue is resolved in this thread http://forum.cogsci.nl/index.php?p=/discussion/1021/possible-to-populate-sketchpad-in-sequence-using-array#Item_2
-
The answer is Yes. One has to use exp.set within a for loop as below. However the concerned set variables need to be set at least once outside the loop (say in a previous inline script). Arrays need to be global when defined and initialized. Otherwi…
-
I think this file gets at what I was looking for.. A custom counter that does start from zero. One thing I learned was to use to exp.set and exp.get for simple numeric or string variables. For arrays/objects, the only option is perhaps using the …
-
https://www.dropbox.com/s/krjy4vs2desdm73/counttrialsequence.opensesame.tar.gz shows this counting from 1 instead of zero. Is this normal?
-
Above issue likely due to not turning off the trial sequence using "never". Problem with counter continues (it starts at 1 instead of 0).
-
I've put a print statement that counts the number of trials. It goes from 0 to 8 for some weird reason, instead of 0 to 7. Any ideas?
-
Now its started from zero but it loops the trial n+1 instead of n for i in range(8): exp.items["trialsequence"].prepare() exp.items["trialsequence"].run() This shows 9 trials, instead of 8. Puzzled. The count_tri…
-
I do find that the g variables being changed in an inline script inside the trialsequence object are recognized. One other oddity. Inside this loop, the count_trialsequence seems to start from 1, not 0. Is this documented behavior that we can re…
-
Ok I am using the approach suggested in an older forum post which is just about deleting the loop object and using an inline script to loop in the run tab. When I do this and set the global variable just before the prepare and run for trial sequenc…
-
Hmm.. initially the 2 labels on the top (within a loop) were constant but were being redrawn each time and caused flashing. After a while, this problem went away (only the target which appeared in the center appeared.. with the labels being constan…
-
Sorry for the delay. The Android runtime works on a 10" Galaxy tab 3 from Samsung. When it starts up the /sdcard folder maps on to /storage/emulated/0 which is fine. Using the "My Files" app the location of the 3 demo experiments (…
-
Thanks Joshua. I'll try to figure out things as much as possible and come back here as needed.
-
That was super-helpful. Yes, the default font-size was zero on windows 8.1 for some reason. Changing it and using focus makes the debug window font also bigger (like your screen shot)
-
I should mention that I was going to try it out on a galaxy tab.. Would you consider the Android environment to be stable for simple studies (just responses to visual or audio stimuli) or should I wait?
-
Ok.. Can I develop on windows, install the runtime on Android and run the script on Android? Is that the work flow?
-
I am guessing those are standard python interpreter functions that aren't in the namespace here. If so, kindly ignore my question as the font is small-lish but readable.
-
ok it became readable after I switched several views (inspector etc.) but the help(), credits() function dont seem to be evaluated (error). 1+1 does work though!