-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
R packet tracker fix #2672
R packet tracker fix #2672
Conversation
*beep* *bop* Hi, human. The Click here to see your results. |
interaction_type = ( | ||
simulation_rpacket_tracking_enabled.transport.transport_state.last_interaction_type | ||
) | ||
mask = interaction_type == 2 |
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.
Please change to ENUM
@@ -264,8 +264,9 @@ def single_packet_loop( | |||
) | |||
else: | |||
pass | |||
if montecarlo_configuration.ENABLE_RPACKET_TRACKING: | |||
rpacket_tracker.track(r_packet) | |||
if interaction_type != InteractionType.BOUNDARY: |
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.
Please add and
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2672 +/- ##
==========================================
+ Coverage 67.89% 69.36% +1.46%
==========================================
Files 174 179 +5
Lines 14439 14315 -124
==========================================
+ Hits 9804 9930 +126
+ Misses 4635 4385 -250 ☔ View full report in Codecov by Sentry. |
📝 Description
Type: 🪲
bugfix
Fixes #2671
This PR fixes the way RPacketTracker tracks the packet. Also, since no tests were written for rpacket_tracker. I wrote some of them.
🚦 Testing
How did you test these changes?
pytest -vvs tardis/transport/montecarlo/tests/test_rpacket_tracker.py --tardis-refdata=/home/sam/TARDIS/tardis-refdata
☑️ Checklist
build_docs
label