Adding basic dms task to samples
Building sample experiment for delayed match to sample, called dms. Basically runs now, though a bit messy. May also be relying on my own task functions that are sitting in the path. Have to examine this possibility.
Revisiting textures. A problem with the design has occurred: textures cannot be created until there is an open PTB window (via env.initWindow) but initWindow is called by env.runSession which is 'supposed' to be the last task in the user's work flow. One possibility is that the env.makeTexture function anticipates this need, and calls env.initWindow if one is not already in place. Further, runSession will test to see if a window has already been initialized before making its own call. This will work well, but will make it more difficult for users to add their own windows, should the need arise.....
Fixed texture support using previously detailed solution. Also discovered issue whereby nonmatch trials in the sample dms task will occasionally have matching stimuli. Why??
Changed arguments for draw('texture', ...) call, so position argument uses same format as draw('rect', ...). Updated sample dms code to utilize new syntax. Added stimuli to sample dms task.
Merge branch 'master' of http://www.github.com/matthewrsilver/simio