-
Notifications
You must be signed in to change notification settings - Fork 168
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
fix: Bug when sorting the SP in SeedFinder #1143
fix: Bug when sorting the SP in SeedFinder #1143
Conversation
Fantastic! Does that mean we could get rid of |
Codecov Report
@@ Coverage Diff @@
## main #1143 +/- ##
==========================================
- Coverage 47.79% 47.77% -0.03%
==========================================
Files 360 360
Lines 18600 18608 +8
Branches 8770 8770
==========================================
Hits 8890 8890
- Misses 3658 3666 +8
Partials 6052 6052
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
I realised that the output is still not the same, so I will have to investigate this a bit further before removing the |
I believe that now we can get rid of |
Co-authored-by: Paul Gessinger <[email protected]>
Co-authored-by: Paul Gessinger <[email protected]>
Co-authored-by: Paul Gessinger <[email protected]>
…/acts into itk-seeding-bug
One alternative would be to create an index vector and sort this vector based on
|
Can't we just have Right now we have template <typename external_spacepoint_t>
void transformCoordinates(
std::vector<const InternalSpacePoint<external_spacepoint_t>*>& vec,
const InternalSpacePoint<external_spacepoint_t>& spM, bool bottom,
bool enableCutsForSortedSP, std::vector<LinCircle>& linCircleVec); Does |
I don't think this should happen. @robertlangenberg, can you please confirm it? |
… itk-seeding-bug merging noemina/change-const-space-points
This PR tries to fix usage of mutable properties in #1168 and #1143. Tagging: @paulgessinger @robertlangenberg @LuisFelipeCoelho BREAKING CHANGE: Remove assumption on constness of InternalSpacePoint. The need of this major change is to allow seed finding and filtering to evaluate and set properties of InternalSpacePoints as soon as they are candidates for triplet formation and seed quality evaluation.
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.
Changes look good to me. Approving.
I've discovered that acts-project#1143 introduces a subtle but rather nefarious bug in the seed finder utilities: the const qualifier on one of the types was removed in the .ipp file, but not in the corresponding .hpp file. This means that any code importing the .hpp will gladly compile the code, but because a matching implementation is not present in the .ipp file, it will rely on this implementation being made available at link time. In this particular case, that never happens, and we run into rather hard to debug linking errors. This commit resolves the issue by making sure that the function signatures between the .hpp file and the .ipp file are the same.
In PR #1084 I mentioned that we were seeing a degradation in tracking efficiency when sorting the SP in cotangent of theta in the
SeedFinder
. However I realised that I was sorting only thelinCircleVec
vector inSeedFinder
and thecompatBottomSP
andcompatTopSP
vectors should also be sorted.This PR solves the bug and now the efficiency and the output should be the same as without the sorting.
@paulgessinger @robertlangenberg @noemina