Пример #1
0
# 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
d.contrast = 1.5
# 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?
Пример #2
0

"""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
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