Exemple #1
0
 def topo_frames(
     self,
     grid_size=default_noise["grid_size"],
     size_x=default_topo["size_x"],
     grid=default_noise["grid"],
     background_luminance=default_topo["background_luminance"],
     density=default_topo["density"],
 ):
     snclass = topo.SparseNoise(
         grid_size=grid_size,
         grid=grid,
         background_luminance=background_luminance,
         density=density,
         size_x=size_x,
         size_y=default_topo["size_y"],
         location_x=default_topo["location_x"],
         location_y=default_topo["location_y"],
         time_per_image=default_noise["time_per_image"],
         frame_duration=default_topo["frame_duration"],
         experiment_seed=self.experiment_seed,
     )
     return snclass._frames
Exemple #2
0
 def test_init_assert(self):
     """
     Checks the assertion in the init function of the class.
     """
     with pytest.raises(AssertionError):
         t = topo.SparseNoise(time_per_image=1.4, frame_duration=1.5)
Exemple #3
0
def demo_stimulus_1():
    params = SparseNoise_default_parameters()
    stim = topo.SparseNoise(**params)
    viz.show_stimulus(stim)