# post-experiment duration to display blank screen (sec) s.postexpSec = 1 # grid orientation offset (deg) s.orioff = 0 #dc.get('Manbar0', 'orioff') # grid width (number of cells) s.ncellswide = 10 # grid height (number of cells) s.ncellshigh = 10 # grid width (deg) s.widthDeg = 40#s.ncellswide * 5 #dc.get('Manbar0', 'widthDeg') # grid height (deg) s.heightDeg = 20#s.ncellshigh * 5 #dc.get('Manbar0', 'heightDeg') # screen gamma: None, or single value, or 3-tuple s.gamma = None #dc.get('Screen', 'gamma') # sync square (for frame sync) s.syncsq = True # sync sqaure location s.syncsqloc = (100,100) """Dynamic parameters can potentially vary from one sweep to the next. If a dynamic parameter is assigned multiple values in a sequence, it's treated as a Variable, and has to be added to this Experiment's Variables object""" # index of cell horizontal position (origin at left) d.xi = range(s.ncellswide) # index of cell vertical position (origin at bottom) d.yi = range(s.ncellshigh) # grid orientation relative to orioff (deg) d.ori = 0 # grid x position relative to origin (deg) d.xposDeg = 0 # grid y position relative to origin (deg) d.yposDeg = 0
# 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 s.terrain.colorrandom = True #randomize the stimulus color s.terrain.colorcorrect = s.terrain.black #what is the correct color