Skip to content

Instantly share code, notes, and snippets.

# Generated by OpenSesame 2.9.4 (Hesitant Heisenberg)
# Fri Mar 27 15:15:18 2015 (posix)
# <http://www.cogsci.nl/opensesame>
set background "black"
set canvas_backend "xpyriment"
set compensation "0"
set coordinates "relative"
set description "Default description"
set foreground "white"
### Image loading...
exp.imfolder = os.path.join(exp.experiment_path, '__pool__')
exp.all_img = [scipy.misc.imread( os.path.join(exp.imfolder,im) )
for im in os.listdir(exp.imfolder) if '.jpg' in im]
### "cut out center" of these images:
img = exp.all_img[0]
xc,yc= img.shape[0]//2, img.shape[0]//2
rr,cc = skimage.draw.circle(yc,xc, 45)
# Generated by OpenSesame 2.9.4 (Hesitant Heisenberg)
# Wed Mar 25 19:11:03 2015 (posix)
# <http://www.cogsci.nl/opensesame>
set background "black"
set bidi "no"
set canvas_backend "psycho"
set compensation "0"
set coordinates "relative"
set description "A template containing a practice and an experimental phase"
# Generated by OpenSesame 2.9.4 (Hesitant Heisenberg)
# Wed Mar 25 19:08:59 2015 (posix)
# <http://www.cogsci.nl/opensesame>
set background "black"
set bidi "no"
set canvas_backend "psycho"
set compensation "0"
set coordinates "relative"
set description "A template containing a practice and an experimental phase"