Skip to content

Fix incorrect assertion in build_tracks kernel#1251

Open
stephenswat wants to merge 1 commit intoacts-project:mainfrom
stephenswat:fix/build_track_assertion
Open

Fix incorrect assertion in build_tracks kernel#1251
stephenswat wants to merge 1 commit intoacts-project:mainfrom
stephenswat:fix/build_track_assertion

Conversation

@stephenswat
Copy link
Copy Markdown
Member

This commit fixes an incorrect assertion in the build_tracks kernel to account for the fact that this kernel can now produce fitted tracks. It also re-enables the check for duplicate measurements on each track.

This commit fixes an incorrect assertion in the `build_tracks` kernel to
account for the fact that this kernel can now produce fitted tracks. It
also re-enables the check for duplicate measurements on each track.
@stephenswat stephenswat added the bug Something isn't working label Feb 5, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 5, 2026

Comment on lines +230 to +231
assert(measurements.at(i.index).identifier() !=
measurements.at(j.index).identifier());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But if we use MBF, this could potentially lead to invalid memory access, no? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants