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