-
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: minor bugs in grid vertex seeder #2376
fix: minor bugs in grid vertex seeder #2376
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2376 +/- ##
==========================================
- Coverage 49.69% 49.68% -0.02%
==========================================
Files 454 454
Lines 25796 25799 +3
Branches 11850 11849 -1
==========================================
- Hits 12820 12818 -2
- Misses 4575 4580 +5
Partials 8401 8401
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…ctor-grid-seeder
Hi. Thanks for the PR! |
Just to add: in my understanding, the previous implementation also mapped |
Thanks for having a look at it!
Sorry, that was a very misleading typo, I meant to write
Here is some code you can have a look at https://onlinegdb.com/UGjDeZYK2.
We could, but since we impose an uneven number of bins this would introduce some asymmetry (e.g., for a track centered at
I think bin -1 was not skipped, rather
You can have a look at https://onlinegdb.com/mjoUXyTTT to confirm this.
Great, thanks a lot for your time! |
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.
Ok, looks good to me! Thanks for the PR!
Invalidated by push of 9044fb2
I looked at this again to make a port for the original |
Some small improvements in
AdaptiveGridTrackDensity
andGaussianGridTrackDensity
:1/(2 * M_PI)
is removed from the track density since constant factors have no influence on the position of the maximum z value.AdaptiveGridTrackDensity
. I repositioned the grid such that the central bin corresponds to the interval[-binSize/2, binSize/2)
. As a consequence, I had to modify the unit tests.compare_to_analytical_solution_for_single_track
.check_seed_width_estimation
andcompare_to_analytical_solution_for_single_track
.