示例#1
0
#===============================================================================

# MOUSE ID
s.mouseid = 'test'
# pre-experiment duration to display blank screen (sec)
s.preexpSec = 10
# 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
示例#2
0
"""Static parameters always remain constant during the entire experiment"""

# experiment id (log folder name)
s.expid = "Test"
# pre-experiment duration to display blank screen (sec)
s.preexpSec = 1
# 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 = 60 #dc.get('Manbar0', 'widthDeg')
# 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)