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 brightness (0-1) d.brightness = [0, 1] # background brightness (0-1) d.bgbrightness = 0.5 # antialiase the bar? d.antialiase = True # sweep duration (sec) d.sweepSec = 0.25 # post-sweep duration to display blank screen (sec) d.postsweepSec = 0 # contrast reverse
s.terrain.colorcorrect = s.terrain.black #what is the correct color s.terrain.objectwidthDeg = 23 #width of the object in degrees #set up reward (NIDAQ device, port for Digital Out, number of lines, rewardline) s.reward = Reward('Dev2',1,0) #define reward paramters s.reward.rewardtime = 0.03 #=============================================================================== # 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 #=============================================================================== # grating orientation relative to orioff (deg) d.ori = range(0, 360, 45) # grating x position relative to origin (deg) d.xposDeg = 0 # grating y position relative to origin (deg) d.yposDeg = 0 # mask diameter (deg), ignored if mask is None d.diameterDeg = 10 # spatial frequency (cycles/deg) d.sfreqCycDeg = [0.1,0.2] # temporal frequency (cycles/sec) d.tfreqCycSec = [1,2,3] # grating phase to begin each sweep with (+/- deg) d.phase0 = 0 # mean luminance (0-1) d.ml = 0.5 # contrast (0-1), >> 1 get square grating, < 0 get contrast reversal
"""Static parameters always remain constant during the entire experiment""" s.expid = "GAMMATEST" # pre-experiment duration to display blank screen (sec) s.preexpSec = 5 # post-experiment duration to display blank screen (sec) s.postexpSec = 5 # bar orientation offset (deg) s.orioff = 0 # screen gamma: None, or single value, or 3-tuple s.gamma = None """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""" # bar orientation relative to orioff (deg) d.ori = 0 #range(0, 360, 30) # bar speed (deg/sec) d.speedDegSec = 0 # bar x position relative to origin (deg), ignored if speedDegSec isn't 0 d.xposDeg = 0 # bar y position relative to origin (deg), ignored if speedDegSec isn't 0 d.yposDeg = 0 # bar width (deg) d.widthDeg = 60 # bar height (deg) d.heightDeg = 60 # bar brightness (0-1) d.rbrightness = [x/100.0 for x in range(0,100,5)] # bar brightness (0-1) d.gbrightness = [x/100.0 for x in range(0,100,5)] # bar brightness (0-1)
# grating height (deg) s.heightDeg = 60 #dc.get('Manbar0', 'heightDeg') # mask, one of: None, 'gaussian', or 'circle' s.mask = None # screen gamma: None, or single value, or 3-tuple s.gamma = None # sync square? s.syncsq = True # sync square 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""" # grating orientation relative to orioff (deg) d.ori = 0 # range(0) # grating x position relative to origin (deg) d.xposDeg = 0 # grating y position relative to origin (deg) d.yposDeg = 0 # mask diameter (deg), ignored if mask is None d.diameterDeg = 10 # spatial frequency (cycles/deg) d.sfreqCycDeg = [0.2, 0.4, 0.6, 1, 2, 4] # temporal frequency (cycles/sec) d.tfreqCycSec = 4 # grating phase to begin each sweep with (+/- deg) d.phase0 = 0 # range(0) # mean luminance (0-1) d.ml = 0.5 # contrast (0-1), >> 1 get square grating, < 0 get contrast reversal