"""Runs a Bar experiment. Used to test display timing with photodiode""" 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
"""Runs a SparseNoise experiment""" from dimstim.Constants import dc # dimstim config from dimstim.Core import StaticParams, DynamicParams, Variable, Variables, Runs, BlankSweeps 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)
"""Runs a Foraging experiment""" from dimstim.Core import StaticParams from dimstim.Constants import dc # dimstim config from aibs.ManBar_Foraging import ManBar from aibs.Terrain import Terrain from aibs.Reward import Reward from aibs.Encoder import Encoder p = StaticParams() # Foraging experiment parameters, all must be scalars # Mouse ID p.mouseid = 'test' # background brightness (0-1) p.bgbrightness = 0.5 # antialiase the bar? p.antialiase = True # screen gamma: None, or single value, or 3-tuple p.gamma = dc.get('Screen', 'gamma') # flash the stimulus? p.flash = False # duration of each flash cycle (on and off) (sec) p.flashSec = 1 # starting y position p.ypos = 540 #540 is center on 1080 pixel wide monitor # print vsync histogram? p.printhistogram = False # display on how many screens? p.nscreens = 2
"""Runs a flashed Grating experiment""" from dimstim.Constants import dc # dimstim config from dimstim.Core import StaticParams, DynamicParams, Variable, Variables, Runs, BlankSweeps from aibs.ForagingSweeps import ForagingSweeps from aibs.Terrain import Terrain from aibs.Encoder import Encoder from aibs.Reward import Reward s = StaticParams() d = DynamicParams() #=============================================================================== # Static parameters always remain constant during the entire experiment #=============================================================================== # 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
"""Runs a Bar experiment. Used to test display timing with photodiode""" 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 = "TIMINGTEST" # 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
"""Runs a flashed Grating experiment""" from dimstim.Constants import dc # dimstim config from dimstim.Core import StaticParams, DynamicParams, Variable, Variables, Runs, BlankSweeps from aibs.Grating_AIBS import Grating s = StaticParams() d = DynamicParams() """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)
"""Runs a Bar experiment. Used to test display timing with photodiode""" 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""" # 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)