Skip to content

Commit

Permalink
do old soma bifurcation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf committed Oct 9, 2024
1 parent 8f02bb3 commit 6e94260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/readers/morphologySWC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class SWCBuilder
if (children_.count(s.id) > 0 && children_.at(s.id).size() > 1) {
std::vector<SWCSample> soma_bifurcations;
for (auto id : children_.at(s.id)) {
if (samples_[id].type == SECTION_SOMA) {
if (samples_[id].type == SECTION_SOMA && s.parentId != SWC_ROOT) {
soma_bifurcations.push_back(samples_[id]);
}
}
Expand Down

0 comments on commit 6e94260

Please sign in to comment.