コード例 #1
0
 def setUp(self) :
     rtneuron.display_circuit(
         brain.test.blue_config, 'L5CSPC', report="allCompartments",
         eq_config=setup.medium_rect_eq_config)
     view = rtneuron.engine.views[0]
     view.attributes.idle_AA_steps = 0
     view.attributes.background = [0.5, 0.5, 0.5, 1]
     view.camera.setView([38, 650, 1003],
                         ([0.0, 0.0, 1.0], 0.0))
コード例 #2
0
    def setUp(self):
        rtneuron.display_circuit(brain.test.blue_config,
            ('L5CSPC', {'mode' : rtneuron.RepresentationMode.SOMA}))

        self.view = rtneuron.engine.views[0]
        self.view.attributes.background = [0, 0, 0, 1]
        # So results are not GPU/drivers dependant
        self.view.attributes.idle_AA_steps = 32
        # To make sure the scene is ready
        rtneuron.engine.frame()
        rtneuron.engine.waitFrame()
コード例 #3
0
def display_circuit() :
    rtneuron.display_circuit(
        bluecfg, ('MiniColumn_0', {'mode' : rtneuron.RepresentationMode.SOMA}),
        eq_config = setup.medium_rect_eq_config)
    # Disabling idle AA and pausing to ensure that the background change and
    # idle AA don't disturb frame accounting. In principle the record function
    # also calls pause, but there's a race condition between redraw requests
    # and pause that makes frame accounting fail randomly otherwise
    # (BBPRTN-332).
    rtneuron.engine.pause()
    view = rtneuron.engine.views[0]
    view.attributes.idle_AA_steps = 0
    rtneuron.engine.waitFrame()
    view.attributes.background = [0, 0, 0, 1]
コード例 #4
0
    def setUp(self):
        rtneuron.display_circuit(brain.test.blue_config,
            ('L5CSPC', {'mode': rtneuron.RepresentationMode.SOMA}),
            eq_config = setup.small_eq_config)

        self.view = rtneuron.engine.views[0]
        self.view.attributes.background = [0, 0, 0, 1]
        # So results are not GPU/drivers dependant
        self.view.attributes.idle_AA_steps = 32
        # Forcing the model scale to be the one that was badly computed before
        # the fix in 57c463b
        self.view.attributes.model_scale = 390.60089111328125
        # To make sure the scene is ready
        rtneuron.engine.frame()
        rtneuron.engine.waitFrame()
コード例 #5
0
    def setUp(self, gids=GIDS, mode=rtneuron.RepresentationMode.WHOLE_NEURON):

        rtneuron.display_circuit(brain.test.blue_config, (gids, {
            'mode': mode
        }),
                                 eq_config=setup.small_eq_config)

        view = rtneuron.engine.views[0]
        view.attributes.idle_AA_steps = 32
        view.attributes.auto_compute_home_position = False
        view.attributes.background = [0.5, 0.5, 0.5, 1]
        view.attributes.spike_tail = 2
        view.camera.setView([49, 630, 809], ([0.0, 0.0, 1.0], 0.0))
        self.view = view

        # Splitting the loaded target in three
        self.gids = gids
        self.targets = [gids[0::3], gids[1::3], gids[2::3]]
        self.tmp = None
コード例 #6
0
def display_circuit(eq_config=setup.medium_rect_eq_config):
    target = [429, 441, 442, 446, 447, 453, 454, 463, 475, 478]
    rtneuron.display_circuit(blue_config, (target, {
        'color': [1, 0, 0, 1]
    }),
                             eq_config=eq_config)
コード例 #7
0
    def test_display_circuit(self):

        rtneuron.display_circuit(config,
                                 ('MiniColumn_0', {
                                     'mode': rtneuron.RepresentationMode.SOMA
                                 }))
コード例 #8
0
    def test_display_circuit_with_regex(self):

        rtneuron.display_circuit(config,
                                 ('MiniColumn_[0-9]', {
                                     'mode': rtneuron.RepresentationMode.SOMA
                                 }))