You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Can someone please verify if the current implementation of RPacketTracker has a bug?
In the single_packet_loop function, the trace_packet function returns the distance, interaction_type, and delta_shell that the packet went through
Here's the issue
Say the packet went through a LINE interaction in shell_id=1; we track that in rpacket_tracker correctly, but now, if it went through a BOUNDARY, we are now using the previous value of r_packet to say that we have got a LINE interaction with the updated values of r and shell_id. Even though we are not going through a LINE interaction.Please correct me if I am wrong here.A proposed solution would be to update the rpacket_tracker only when it's not BOUNDARY Interaction.
Screenshots
As we can see, the last interaction type keeps getting copied over when the packet moves to the next boundary.
System
OS:
GNU/Linux
macOS
The text was updated successfully, but these errors were encountered:
Describe the bug
Can someone please verify if the current implementation of RPacketTracker has a bug?
In the single_packet_loop function, the trace_packet function returns the distance, interaction_type, and delta_shell that the packet went through
tardis/tardis/transport/montecarlo/single_packet_loop.py
Lines 147 to 158 in 26b6005
interaction_type could be BOUNDARY, LINE, ESCATTERING, etc.
tardis/tardis/transport/montecarlo/single_packet_loop.py
Lines 162 to 163 in 26b6005
tardis/tardis/transport/montecarlo/single_packet_loop.py
Lines 203 to 204 in 26b6005
tardis/tardis/transport/montecarlo/single_packet_loop.py
Lines 230 to 231 in 26b6005
Here's the issue
Say the packet went through a LINE interaction in shell_id=1; we track that in rpacket_tracker correctly, but now, if it went through a BOUNDARY, we are now using the previous value of r_packet to say that we have got a LINE interaction with the updated values of r and shell_id. Even though we are not going through a LINE interaction.Please correct me if I am wrong here.A proposed solution would be to update the rpacket_tracker only when it's not BOUNDARY Interaction.
Screenshots
As we can see, the last interaction type keeps getting copied over when the packet moves to the next boundary.
System
The text was updated successfully, but these errors were encountered: