I'm looking to programmatically access NEURON Pointers that were instantiated using "h.setpointer" in Python
Where do Pointers constructed by "h.setpointer" live, and what's the best way to access them?
For example, let's say I have two sections (secA and secB) that are connected with a chemical synapse (synAB, A->B)
The pre-synaptic voltage is set by manually pointing to the appropriate membrane potential reference using h.setpointer :
Code: Select all
secA = h.Section(name='secA')
secB = h.Section(name='secB')
synAB = h.fakeSynapse(secB(0.5))
# assuming fakeSynapse comes from a MOD file that has POINTER V_pre in the NEURON block
h.setpointer(secA(0.5)._ref_v, 'V_pre', synAB)
If I could access it, would I be able to use it to find the sources/targets? Ie that synAB.V_pre is pointing to secA(0.5)._ref_v?
Appreciate any help/direction here.
Best,
Omar