예제 #1
0
    def setUp(self):
        gids = [400, 406, 412]
        Common.setUp(self, gids=gids)

        self.view.attributes.spike_tail = 2

        self._spikefile = self._create_spikes_file(gids)
        rtneuron.apply_spike_data(self._spikefile.name, self.view)
        rtneuron.engine.player.window = [0, 6]
예제 #2
0
 def test_colormap(self):
     # Modify the spikes colormap
     self.view.attributes.colormaps.spikes.setPoints({0: [0, 0, 0, 0],
                                                      0.33: [1, 0, 0, 0.25],
                                                      0.66: [1, 1, 0, 0.5],
                                                      1.0: [1, 1, 1, 1.0]})
     rtneuron.apply_spike_data(self.simulation, self.view)
     self.engine.player.window = [0, 10]
     self.engine.player.timestamp = 5
     compare_with_original(self.view, "snapshot_colormap.png")
예제 #3
0
    def setUp(self):
        Common.setUp(self, mode=rtneuron.RepresentationMode.SOMA)

        self._spikefile = self._create_spikes_file(self.gids)
        rtneuron.apply_spike_data(self._spikefile.name, self.view)
        rtneuron.engine.player.window = [0, 6]

        # To make sure the scene is ready before the timestamps are modified
        rtneuron.engine.frame()
        rtneuron.engine.frame()
예제 #4
0
    def setUp(self) :
        target = 'L5CSPC'
        attributes = AttributeMap({'mode' : rtneuron.RepresentationMode.SOMA})
        setup.setup_simple(self, target, target_attributes=attributes)

        view = self.view
        view.attributes.idle_AA_steps = 32
        view.attributes.auto_compute_home_position = False
        view.attributes.background = [0, 0, 0, 1]

        self._spikefile = self._create_spikes_file(target)
        rtneuron.apply_spike_data(self._spikefile.name, view)
        self.engine.player.window = [0, 6]

        # To make sure the scene is ready before the timestamps are modified
        self.engine.frame()
        self.engine.frame()