Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NetCon.preloc() and NetCon.preseg() returns the proper x value (or
nrn.Segment) for the NetCon location instead of just 0, 1, or 0.5. Note that if the threshold variable is not v, then preloc returns -2 and preseg returns None. If the NetCon has no source (or its source gid is associated with a cell not on this process) then preloc returns -1 and preseg returns None. Note that preseg does not push the section and so does not require a corresponding h.pop_section().
- Loading branch information
Showing
1 changed file
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters