NetCon and artificial cell; sec parameter
Posted: Sun Jul 13, 2008 2:33 pm
I'm trying -- in Python -- to make a NetCon connection where the presynaptic cell is an artificial neuron.
The normal syntax for creating a NetCon would be something like:
The artificial cell, however has no '.soma' (nor any other section)
I can change the first argument from:
to:
which seems to work OK, but changing the third argument from:
to:
doesn't work, since preCell is either a cell or a mechanism, depending on how you look at it, but definitely not a section.
Specifically:
gives this error message:
What's the correct way to do this?
The normal syntax for creating a NetCon would be something like:
Code: Select all
nc = h.NetCon(preCell.soma(0.5)._ref_v,postMech,sec=preCell.soma)
I can change the first argument from:
Code: Select all
preCell.soma(0.5)._ref_v
Code: Select all
preCell
Code: Select all
sec=preCell.soma
Code: Select all
sec=preCell
Specifically:
Code: Select all
nc = h.NetCon(preCell,postMech,sec=preCell)
Code: Select all
TypeError: sec is not a Section