For example:
Code: Select all
presection.nseg = 3
ParallelContext.cell(gid1, NetCon(presection(0)) --> pc.gid_connect(gid1, PostSyn1) --> OK
ParallelContext.cell(gid2, NetCon(presection(0.49)) --> pc.gid_connect(gid2, PostSyn2) --> SILENT
ParallelContext.cell(gid3, NetCon(presection(0.5)) --> pc.gid_connect(gid3, PostSyn3) --> SILENT
ParallelContext.cell(gid4, NetCon(presection(0.51)) --> pc.gid_connect(gid4, PostSyn4) --> OK
ParallelContext.cell(gid5, NetCon(presection(1)) --> pc.gid_connect(gid5, PostSyn5) --> OK
Code: Select all
presection.nseg = 3
NetCon(presection(0), PostSyn1) --> OK
NetCon(presection(0.49), PostSyn2) --> OK
NetCon(presection(0.5), PostSyn3) --> OK
NetCon(presection(0.51), PostSyn4) --> OK
NetCon(presection(1), PostSyn5) --> OK
Instantiating the pre-cell on the post- rank and then checking whether any of the pre- locations resolve to duplicate segments seems like one, rather inefficient way to do it. Is there a better way?
Tips and advice much appreciated.