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

Fixed brain::circuit methods to not crash with empty gids lists #204

Merged
merged 1 commit into from
Jan 18, 2018

Conversation

hernando
Copy link
Contributor

No description provided.

brion::GIDSet nil;
BOOST_CHECK(mvd2.getPositions(nil).empty());
BOOST_CHECK(mvd2.getTransforms(nil).empty());
BOOST_CHECK(mvd2.getMorphologyNames(nil).empty());
Copy link
Contributor

Choose a reason for hiding this comment

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

getRotations() is missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

getTransforms uses the the same code path than getRotations, but I can add it.

@tribal-tec tribal-tec merged commit 793cc89 into master Jan 18, 2018
@tribal-tec tribal-tec deleted the empty_gids_fix branch January 18, 2018 10:37
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.

None yet

2 participants