Skip to content
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

Closed
wants to merge 14 commits into from
Closed

Conversation

Sumit112192
Copy link
Contributor

@Sumit112192 Sumit112192 commented Jun 21, 2024

📝 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

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.
@wkerzendorf @andrewfullard

@tardis-bot
Copy link
Contributor

tardis-bot commented Jun 21, 2024

*beep* *bop*
Hi human,
I ran benchmarks as you asked comparing master (26b6005) and the latest commit (595d640).
Here are the logs produced by ASV.
Results can also be downloaded as artifacts here.
Significantly changed benchmarks:

· No results found

All benchmarks:

· No results found

@andrewfullard andrewfullard marked this pull request as ready for review June 21, 2024 14:48
@andrewfullard andrewfullard enabled auto-merge (squash) June 21, 2024 14:48
andrewfullard
andrewfullard previously approved these changes Jun 21, 2024
@tardis-bot
Copy link
Contributor

tardis-bot commented Jun 21, 2024

*beep* *bop*

Hi, human.

The docs workflow has succeeded ✔️

Click here to see your results.

interaction_type = (
simulation_rpacket_tracking_enabled.transport.transport_state.last_interaction_type
)
mask = interaction_type == 2
Copy link
Member

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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add and

Copy link

codecov bot commented Jun 30, 2024

Codecov Report

Attention: Patch coverage is 98.79518% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.36%. Comparing base (9aec7a7) to head (595d640).
Report is 8 commits behind head on master.

Files Patch % Lines
tardis/transport/montecarlo/single_packet_loop.py 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

This was referenced Jul 1, 2024
@Sumit112192 Sumit112192 closed this Jul 3, 2024
@Sumit112192 Sumit112192 deleted the RPacketTrackerFix branch September 8, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in how RPacketTracker tracks the rpacket.
4 participants