Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add locset expressions for proximal and distal translation of locations #1671

Merged
merged 4 commits into from
Oct 22, 2021

Conversation

bcumming
Copy link
Member

Add proximal-translate and distal-translate locset expressions.

Fixes #1662

Copy link
Contributor

@noraabiakar noraabiakar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks. I have a question and a small correction in the docs.

};

for (auto c: start) {
std::stack<branch_interval> branches_reached;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be a stack? It doesn't hurt, but we just sort the generated locsets in the end.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The algorithm effectively uses a depth-first search to traverse the sub-trees, for which a stack is the natural fit.
The actual branch sections in the output are stored in a different data structure: the std::vector L.

The set of locations that correspond to moving each location in ``ls`` in the distal direction
``distance`` μm or to a terminal location, whichever is closest.
The number of locations in the output is greater than or equal the number in the input, with
multiple locations generated from input locations that are less than ``distance`` μm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more than distance?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I mean less, but might have to reword it to make sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I actually see it now.

@noraabiakar noraabiakar self-assigned this Sep 29, 2021
@noraabiakar noraabiakar merged commit 5cc7d4d into arbor-sim:master Oct 22, 2021
@bcumming bcumming deleted the feature/locset-translate branch June 27, 2022 19:16
@bcumming bcumming restored the feature/locset-translate branch June 27, 2022 19:16
@bcumming bcumming deleted the feature/locset-translate branch June 27, 2022 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: proximal and distal translation of locsets
2 participants