NetCon
Posted: Thu Feb 23, 2012 7:51 am
Hi, I just noticed something annoying while setting the threshold of a NetCon in PyNRN.
With the above code the netcon threshold will still be 10mV, the NEURON default. Only by adding the threshold can be changed. According to the documentation (help(h.NetCon)) you should be able to set the threshold directly in the argument
Code: Select all
def _initRecordingSpikes(self):
self.SpikesRec = h.Vector()
self.nc = h.NetCon(self.soma(0.5)._ref_v,None,sec=self.soma,threshold=-10)
self.nc.record(self.SpikesRec)
Code: Select all
self.nc.threshold=0