예제 #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
예제 #2
0
def demo_stimulus_0_animate():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, grid=True, animate=False)
예제 #3
0
def demo_stimulus_0_frame_delay():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, frame_delay=100)
예제 #4
0
def demo_stimulus_0_grid():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, grid=2)
예제 #5
0
def demo_stimulus_0_duration():
    params = ContinuousGaborMovementAndJump_default_parameters()
    stim = topo.ContinuousGaborMovementAndJump(**params)
    viz.show_stimulus(stim, duration=130)
예제 #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)