-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add locset expressions for proximal and distal translation of locations #1671
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
doc/concepts/labels.rst
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more than distance
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Add
proximal-translate
anddistal-translate
locset expressions.Fixes #1662