# 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 d.contrastreverse = False # contrast reverse Frequency d.cfreqCycSec = 0.5 vs = Variables() #vs.xposDeg = Variable(vals=d.xposDeg, dim=-1, shuffle=False) # kwargs: vals, dim, shuffle, random #vs.ori = Variable(vals=d.ori, dim=-1, shuffle=False) vs.xi = Variable(vals=d.xi, dim=0, shuffle=True) # kwargs: vals, dim, shuffle, random vs.yi = Variable(vals=d.yi, dim=1, shuffle=True) vs.brightness = Variable(vals=d.brightness, dim=2, shuffle=True) runs = Runs(n=10, reshuffle=True) #bs = BlankSweeps(T=7, sec=2, shuffle=False) # blank sweep every T sweeps for sec seconds e = SparseNoise(script=__file__, # this script's file name static=s, dynamic=d, variables=vs, runs=runs, blanksweeps=None) # create a SparseNoise experiment e.run() # run it
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) d.bbrightness = [x/100.0 for x in range(0,100,5)] # background brightness (0-1) d.bgbrightness = 0 # antialiase the bar? d.antialiase = True # sweep duration (sec) d.sweepSec = 5 # post-sweep duration to display blank screen (sec) d.postsweepSec = 0 vs = Variables() vs.rbrightness = Variable(vals=d.rbrightness, dim=0, shuffle=False) # kwargs: vals, dim, shuffle, random vs.gbrightness = Variable(vals=d.gbrightness, dim=1, shuffle=False) # kwargs: vals, dim, shuffle, random vs.bbrightness = Variable(vals=d.bbrightness, dim=2, shuffle=False) # kwargs: vals, dim, shuffle, random #vs.bgbrightness = Variable(vals=d.bgbrightness, dim=1, shuffle=True) runs = Runs(n=5, reshuffle=False) #bs = BlankSweeps(T=7, sec=2, shuffle=False) # blank sweep every T sweeps for sec seconds e = Bar(script=__file__, # this script's file name static=s, dynamic=d, variables=vs, runs=runs, blanksweeps=None) # create a Bar experiment e.run() # run it
# mean luminance (0-1) d.ml = 0.5 # contrast (0-1), >> 1 get square grating, < 0 get contrast reversal d.contrast = 3 # background brightness (0-1) d.bgbrightness = 0.5 # sweep duration (sec) d.sweepSec = 10 # post-sweep duration to display blank screen (sec) d.postsweepSec = 1 # contrast reverse d.contrastreverse = False # contrast reverse Frequency d.cfreqCycSec = 0.5 vs = Variables() #vs.ori = Variable(vals=d.ori, dim=0, shuffle=True) # kwargs: vals, dim, shuffle, random vs.sfreqCycDeg = Variable(vals=d.sfreqCycDeg, dim=1, shuffle=True) #vs.phase0 = Variable(vals=d.phase0, dim=2, shuffle=True) #vs.contrast = Variable(vals=d.contrast, dim=3, shuffle=True) runs = Runs(n=1, reshuffle=False) bs = BlankSweeps(T=20000, sec=2, shuffle=False) # blank sweep every T sweeps for sec seconds e = Grating(script=__file__, # this script's file name static=s, dynamic=d, variables=vs, runs=runs, blanksweeps=bs) # create a Grating experiment e.run() # run it
# background brightness (0-1) d.bgbrightness = 0.5 # sweep duration (sec) d.sweepSec = 5 # post-sweep duration to display blank screen (sec) d.postsweepSec = 0 # reverse the contrast? d.contrastreverse = False # contrast reverse freq? d.cfreqCycSec = 2 #=============================================================================== # Variables determine the sweep table #=============================================================================== vs = Variables() vs.ori = Variable(vals=d.ori, dim=0, shuffle=False) # kwargs: vals, dim, shuffle, random vs.sfreqCycDeg = Variable(vals=d.sfreqCycDeg, dim=1, shuffle=False) #vs.phase0 = Variable(vals=d.phase0, dim=0, shuffle=False) vs.tfreqCycSec = Variable(vals=d.tfreqCycSec, dim=2, shuffle=False) #vs.contrast = Variable(vals=d.contrast, dim = 0, shuffle=False) #vs.phase0 = Variable(vals=d.phase0, dim=0, shuffle = False) #=============================================================================== # Run #=============================================================================== runs = Runs(n=4, reshuffle=False) bs = BlankSweeps(T=7, sec=5, shuffle=False) # blank sweep every T sweeps for sec seconds
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.brightness = [0, 1] # background brightness (0-1) d.bgbrightness = 0 # antialiase the bar? d.antialiase = True # sweep duration (sec) d.sweepSec = 0.020 # post-sweep duration to display blank screen (sec) d.postsweepSec = 0 vs = Variables() vs.brightness = Variable(vals=d.brightness, dim=0, shuffle=False) # kwargs: vals, dim, shuffle, random # vs.bgbrightness = Variable(vals=d.bgbrightness, dim=1, shuffle=True) runs = Runs(n=1000, reshuffle=False) # bs = BlankSweeps(T=7, sec=2, shuffle=False) # blank sweep every T sweeps for sec seconds e = Bar( script=__file__, static=s, dynamic=d, variables=vs, runs=runs, blanksweeps=None # this script's file name ) # create a Bar experiment e.run() # run it