コード例 #1
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)
コード例 #2
0
 def testCreateNESTCell(self):
     """create(): First cell created should have GID==1"""
     ifcell = nest.create('iaf_neuron')
     assert ifcell == 1, 'Failed to create NEST-specific cell'
コード例 #3
0
 def testCreateStandardCellWithParams(self):
     """create(): Parameters set on creation should be the same as retrieved with getDict()"""
     ifcell = nest.create(nest.IF_curr_alpha, {'tau_syn_E': 3.141592654})
     ifcell_params = nest.pynest.getDict([ifcell])
     assert ifcell_params[0]['TauSynE'] == 3.141592654
コード例 #4
0
 def testCreateStandardCells(self):
     """create(): Creating multiple cells should return a list of GIDs"""
     ifcell = nest.create(nest.IF_curr_alpha, n=10)
     assert ifcell == range(1, 11), 'Failed to create 10 standard cells'
コード例 #5
0
 def testCreateStandardCell(self):
     """create(): First cell created should have GID==1"""
     ifcell = nest.create(nest.IF_curr_alpha)
     assert ifcell == 1, 'Failed to create standard cell'
コード例 #6
0
 def setUp(self):
     nest.setup()
     self.ifcell = nest.create(nest.IF_curr_alpha, {'i_offset': 1.0})