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

Connections: adaptSegment make const input, #292

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

breznak
Copy link
Member

@breznak breznak commented Mar 2, 2019

add check for segfault from CP

add check for segfault from CP
@breznak breznak added the code code enhancement, optimization, cleanup..programmer stuff label Mar 2, 2019
@@ -318,6 +318,7 @@ Segment Connections::getSegment(CellIdx cell, SegmentIdx idx) const {
}

const vector<Synapse> &Connections::synapsesForSegment(Segment segment) const {
NTA_ASSERT(segment < segments_.size()) << "Segment out of bounds! " << segment;
Copy link
Member Author

Choose a reason for hiding this comment

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

NTA_CHECK would be ideal, but this is a low-level, performance critical method, so we probably can't afford that luxury.

@breznak breznak added the ready label Mar 2, 2019
@breznak breznak self-assigned this Mar 2, 2019
Copy link
Collaborator

@ctrl-z-9000-times ctrl-z-9000-times left a comment

Choose a reason for hiding this comment

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

This is the kind of PR that's easy to review & merge!

@ctrl-z-9000-times ctrl-z-9000-times merged commit 3b1b11c into master Mar 2, 2019
@ctrl-z-9000-times ctrl-z-9000-times deleted the connections_segfault branch March 2, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code code enhancement, optimization, cleanup..programmer stuff ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants