Repository navigation
Fix repeated line traversal bug in nonhomologous packet transport - #3802
Merged
jvshields merged 11 commits intoNov 10, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3802 +/- ##
==========================================
+ Coverage 70.94% 71.30% +0.35%
==========================================
Files 207 207
Lines 15940 15969 +29
==========================================
+ Hits 11309 11386 +77
+ Misses 4631 4583 -48 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
connor-mcclellan
marked this pull request as ready for review
October 28, 2026 21:30
Contributor
|
The docs workflow has completed with these results:
View the documentation preview. Runs: build and test · publish |
…d additional arguments in trace packet
andrewfullard
previously approved these changes
Nov 3, 2026
andrewfullard
left a comment
Contributor
There was a problem hiding this comment.
Fix the merge conflicts and add some better test docstrings and this is good to go.
jvshields
reviewed
Nov 3, 2026
jvshields
reviewed
Nov 3, 2026
jvshields
reviewed
Nov 3, 2026
Contributor
|
Still need the merge conflict resolved |
andrewfullard
approved these changes
Nov 10, 2026
jvshields
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Type: 🪲
bugfixFixes a bug in the line search caused by floating point precision. When looking for resonances forward in the packet's trajectory,
trace_packet(line 123) rebuilds an inclusive line range from comoving frequencies on every call, even when the packet has already traversed a line. The distance solver (line 319) rejects only roots within CLOSE_LINE_THRESHOLD × shell_width.With a test nonhomologous shell of inner radius 1e14 cm, outer radius 2e14 cm, and edge velocities v_inner=1e8 cm/s, v_outer=1.8e-8 cm/s, the projected velocity along a test ray trajectory has no gradient reversal, so a resonance should be encountered at most once.
With a line already marked as traversed, trace_packet selects that line again 1.455078125 cm ahead of its current position since the distance threshold cutoff is 1 cm. A second call repeats the line event and estimator contribution.
📌 Resources
Andrew reproduced this bug with this ad-hoc test:
🚦 Testing
How did you test these changes?
☑️ Checklist
build_docslabel