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

Ward against probing the void. #2139

Merged

Conversation

thorstenhater
Copy link
Contributor

Fixes #2137 by returning empty results on non-existent probes.

Note: Dear reviewer you might not like this (nor do I, really), but it's consistent with the
rest of probing.

Copy link
Collaborator

@jlubo jlubo left a comment

Choose a reason for hiding this comment

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

Works!

@boeschf
Copy link
Contributor

boeschf commented Jun 20, 2023

The empty returns aren't implemented for all probe types - is this intended? In particular, the check is missing for

template <typename B>
void resolve_probe(const cable_probe_density_state& p, probe_resolution_data<B>& R) 

boeschf
boeschf previously approved these changes Jul 4, 2023
@brenthuisman brenthuisman added this to the v0.9 milestone Jul 4, 2023
@thorstenhater
Copy link
Contributor Author

Thanks @boeschf, fixed.

Copy link
Contributor

@brenthuisman brenthuisman left a comment

Choose a reason for hiding this comment

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

lgtm

@brenthuisman brenthuisman merged commit 2f804e9 into arbor-sim:master Jul 26, 2023
25 checks passed
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.

Index error when setting probe to non-existent site
4 participants