NetCon without point_process target
Posted: Thu Sep 22, 2016 5:50 am
Hi everybody,
From what I understand in the NEURON book (page 335), we could use the record method of the NetCon class to collect the spikes times of a given segment. In Python, I implemented the following example: https://github.com/JoseGuzman/myIPython ... ikes.ipynb
Since I don't want the NetCon to send the output to any point process, I would like to know if is it possible to set up a NetCon target without 1) having to define a new point_process and 2) having to define a new segment. This is very lengthy for every NetCon that record spikes.
PS:
In the book, there's a variable called 'nil' (what I understand is a dummy variable). In Python, tried the following:
but returned the following error: TypeError: no HocObject interface for objref (hoc type 323)
Thanks
From what I understand in the NEURON book (page 335), we could use the record method of the NetCon class to collect the spikes times of a given segment. In Python, I implemented the following example: https://github.com/JoseGuzman/myIPython ... ikes.ipynb
Code: Select all
from neuron import h
cell1 = h.Section(name = 'cell1')
cell1.insert('hh')
cell2 = h.Section(name = 'cell2')
mysyn = h.ExpSyn(0.5, sec = cell2) # create dummy synapse
mynetcon = h.NetCon( cell1(0.5)._ref_v, mysyn, sec = cell1)
myhocvector = h.Vector()
mynetcon.record(myhocvector)
Since I don't want the NetCon to send the output to any point process, I would like to know if is it possible to set up a NetCon target without 1) having to define a new point_process and 2) having to define a new segment. This is very lengthy for every NetCon that record spikes.
PS:
In the book, there's a variable called 'nil' (what I understand is a dummy variable). In Python, tried the following:
Code: Select all
nil = h.objref()
Thanks