-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handling missing duplicate points (#221)
* Handling missing duplicate points ## What is a duplicate point ? When a child section starts with a point at the same coordinates as the parent section last point, we call this a 'duplicate point'. ℹ️ To consider a point as a duplicate, we only consider its spatial coordinates. The diameter is not taken into account. This means a duplicate is allowed to have any diameter value. ## Context: Some ASC files comes with duplicate points, some do not. So it seems that both format are valid and need to be supported. ## Specification The following specification has been created to exactly recreate NEURON's behavior: * When a duplicate point is **not** in the file (ie. a section does not start at the coordinate of its parent section last point), the duplicate is added. The diameter of the added point is the diameter of the point that comes right after it. * When a duplicate is already in the file, its coordinates and diameter value are used as they are. * When a single child section is merged with its parent section and the child section has a duplicate with a different diameter value, the diameter of the *parent* section is kept.
- Loading branch information
Benoit Coste
authored
Jan 29, 2021
1 parent
86b8dad
commit 5aea894
Showing
3 changed files
with
100 additions
and
51 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
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
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