コード例 #1
0
 def setUp(self):
     nest.setup()
     nest.Population.nPop = 0
     self.net1 = nest.Population((10, ), nest.IF_curr_alpha)
     self.net2 = nest.Population((2, 4, 3), nest.IF_curr_exp)
     self.net3 = nest.Population((2, 2, 1), nest.SpikeSourceArray)
     self.net4 = nest.Population((1, 2, 1), nest.SpikeSourceArray)
     self.net5 = nest.Population((3, 3), nest.IF_cond_exp)
コード例 #2
0
 def setUp(self):
     nest.setup(max_delay=0.5)
     nest.Population.nPop = 0
     self.target33 = nest.Population((3, 3), nest.IF_curr_alpha)
     self.target6 = nest.Population((6, ), nest.IF_curr_alpha)
     self.source5 = nest.Population((5, ), nest.SpikeSourcePoisson)
     self.source22 = nest.Population((2, 2), nest.SpikeSourcePoisson)
     self.source33 = nest.Population((3, 3), nest.SpikeSourcePoisson)
コード例 #3
0
 def setUp(self):
     nest.setup(max_delay=0.5)
     nest.Population.nPop = 0
     self.target33 = nest.Population((3, 3), nest.IF_curr_alpha)
     self.target6 = nest.Population((6, ), nest.IF_curr_alpha)
     self.source5 = nest.Population((5, ), nest.SpikeSourcePoisson)
     self.source22 = nest.Population((2, 2), nest.SpikeSourcePoisson)
     self.prjlist = []
     self.distrib_Numpy = random.RandomDistribution(
         rng=random.NumpyRNG(12345),
         distribution='uniform',
         parameters=(0.1, 0.5))
     for tgtP in [self.target6, self.target33]:
         for srcP in [self.source5, self.source22]:
             for method in ('allToAll', 'fixedProbability'):
                 self.prjlist.append(
                     nest.Projection(srcP, tgtP, method,
                                     {'p_connect': 0.5}))
コード例 #4
0
 def setUp(self):
     nest.setup(timestep=0.1, max_delay=5.0)
     self.postcells = nest.create(nest.IF_curr_alpha, n=3)
     self.precells = nest.create(nest.SpikeSourcePoisson, n=5)
コード例 #5
0
 def setUp(self):
     nest.setup(max_delay=0.5)
     nest.Population.nPop = 0
     self.pop1 = nest.Population((5, ), nest.IF_curr_alpha, {'tau_m': 10.0})
     self.pop2 = nest.Population((5, 4), nest.IF_curr_exp,
                                 {'v_reset': -60.0})
コード例 #6
0
 def setUp(self):
     nest.setup()
     nest.Population.nPop = 0
     self.pop1 = nest.Population((3, 3), nest.SpikeSourcePoisson,
                                 {'rate': 20.})
     self.pop2 = nest.Population((3, 3), nest.IF_curr_alpha)
コード例 #7
0
 def setUp(self):
     nest.setup()
     nest.Population.nPop = 0
     self.net = nest.Population((3, 3), nest.IF_curr_alpha)
     self.net2 = nest.Population((5, ), 'iaf_neuron')
コード例 #8
0
 def setUp(self):
     nest.setup()
     nest.Population.nPop = 0
コード例 #9
0
 def setUp(self):
     nest.setup()
コード例 #10
0
 def setUp(self):
     nest.setup()
     self.ifcell = nest.create(nest.IF_curr_alpha, {'i_offset': 1.0})