Hi, I just noticed something annoying while setting the threshold of a NetCon in PyNRN.
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)
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