# antialiase the bar? p.antialiase = True # screen gamma: None, or single value, or 3-tuple p.gamma = dc.get('Screen', 'gamma') # flash the stimulus? p.flash = False # duration of each flash cycle (on and off) (sec) p.flashSec = 1 # starting y position p.ypos = 540 #540 is center on 1080 pixel wide monitor # print vsync histogram? p.printhistogram = False # display on how many screens? p.nscreens = 2 # set up wheel encoder (NIDAQ Device, Vin, Vsig) p.encoder = Encoder(1,1,2) # set up terrain? [possible orientations], correct orientation] p.terrain = Terrain(['color','orientation']) # define terrain parameters p.terrain.oriarray = [0,45] p.terrain.oricorrect = 0 p.terrain.color = p.terrain.white #initial color state p.terrain.correctfreq = 1 #(0-1) p.terrain.orientation = 45 # starting orientation p.terrain.lapdistance = 1920 # distance in pixels between stimuli (should be wider than screen) p.terrain.windowwidth = 200 # size in pixels of "correct" region p.terrain.selectiontime = 30 # in frames p.terrain.speedgain = 5 # pixels/degree p.terrain.colorrandom = True #randomize the stimulus color p.terrain.colormatters = True #does the correct color matter p.terrain.colorcorrect = p.terrain.black #what is the correct color
# post-experiment duration to display blank screen (sec) s.postexpSec = 1 # bar orientation offset (deg) s.orioff = 0 #dc.get('Manbar0', 'orioff') # grating width (deg) s.widthDeg = 175 #dc.get('Manbar0', 'widthDeg') # grating height (deg) s.heightDeg = 150 #dc.get('Manbar0', 'heightDeg') # mask, one of: None, 'gaussian', or 'circle' s.mask = None #'gaussian' # screen gamma: None, or single value, or 3-tuple s.gamma = None # starting y position of terrain s.ypos = 500 # set up wheel encoder (NIDAQ Device, Vin channel, Vsig channel) s.encoder = Encoder('Dev2',1,2) # sync square s.syncsq = False # sync square location s.syncsqloc = (100,1000) # set up terrain? [trainingtypes] for example ["color"] s.terrain = Terrain(["color", "orientation"]) # define terrain parameters s.terrain.color = s.terrain.white #(0-1) starting color s.terrain.correctfreq = 1 #(0-1) s.terrain.orientation = 0 # starting orientation s.terrain.lapdistance = 3500 # distance in pixels between stimuli (should be wider than screen) s.terrain.windowwidth = 200 # size in pixels of "correct" region s.terrain.selectiontime = 5 # in frames s.terrain.speedgain = 4 # no units