Ejemplo n.º 1
0
 def get_stimulus(
     self,
     x,
     y,
     size,
     orientation,
     movement_length,
     movement_angle,
     movement_duration,
     flash_duration,
     moving_gabor_orientation_radial,
 ):
     """
     Return a ContinuousGaborMovementAndJump stimulus with the specified parameters.
     """
     cgb = topo.ContinuousGaborMovementAndJump(
         duration=default_topo["duration"],
         frame_duration=default_topo["frame_duration"],
         background_luminance=default_topo["background_luminance"],
         density=default_topo["density"],
         location_x=default_topo["location_x"],
         location_y=default_topo["location_y"],
         size_x=default_topo["size_x"],
         size_y=default_topo["size_y"],
         orientation=orientation,
         phase=default_gabor["phase"],
         spatial_frequency=default_gabor["spatial_frequency"],
         size=size,
         movement_duration=movement_duration,
         center_flash_duration=flash_duration,
         moving_relative_luminance=default_gabor["relative_luminance"],
         center_relative_luminance=default_gabor["relative_luminance"],
         x=x,
         y=y,
         movement_length=movement_length,
         movement_angle=movement_angle,
         moving_gabor_orientation_radial=moving_gabor_orientation_radial,
     )
     return cgb
Ejemplo n.º 2
0
def demo_stimulus_0_animate():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, grid=True, animate=False)
Ejemplo n.º 3
0
def demo_stimulus_0_frame_delay():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, frame_delay=100)
Ejemplo n.º 4
0
def demo_stimulus_0_grid():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, grid=2)
Ejemplo n.º 5
0
def demo_stimulus_0_duration():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, duration=130)
Ejemplo n.º 6
0
def demo_show_frame():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    frames = viz.pop_frames(stim, 100)
    viz.show_frame(frames[0], params=params, grid=True)
    viz.show_frames(frames)