Exemplo n.º 1
0
from aibs.SparseNoise_AIBS import SparseNoise

s = StaticParams()
d = DynamicParams()

"""Static parameters always remain constant during the entire experiment"""
# experiment id (for logging)
s.expid = "TEST"
# screen distance # cm
s.distance = 11
# pre-experiment duration to display blank screen (sec)
s.preexpSec = 1
# 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)
Exemplo n.º 2
0
from dimstim.Constants import dc # dimstim config
from dimstim.Core import StaticParams, DynamicParams, Variable, Variables, Runs, BlankSweeps
from aibs.Bar_AIBS import Bar

s = StaticParams()
d = DynamicParams()

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