-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor: transformCoordinates methods without InternalSpacePoint class #1173
refactor: transformCoordinates methods without InternalSpacePoint class #1173
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1173 +/- ##
==========================================
- Coverage 47.86% 47.85% -0.01%
==========================================
Files 371 371
Lines 19411 19413 +2
Branches 9145 9148 +3
==========================================
Hits 9291 9291
- Misses 3789 3791 +2
Partials 6331 6331
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Not Using std::function, Check callable + static_assert
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.
This looks good, sorry for taking so long with the review!
@CarloVarni can you fix the CI? |
@paulgessinger I should have fixed the compilation issues now. I also found an inconsistency between the |
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.
Let's go then.
Adding
transformCoordinates
functions that does not rely only onInternalSpacePoint
. These methods will accept any space point format and require the user to define a function for retrieving coordinate and covariance values (i.e.std::function<std::array<float, 6>(const external_spacepoint_t&)>
). This will allow users to use it externally to ACTS.This does not remove the previous
transformCoordinates
functions in order to be backward compatible. However, they are adapted to use these new implementations.