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)
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'
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
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'
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'
def setUp(self): nest.setup() self.ifcell = nest.create(nest.IF_curr_alpha, {'i_offset': 1.0})