Skip to content

Commit

Permalink
Remove Line Interaction from this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit112192 committed Jul 31, 2024
1 parent 4767fb3 commit 6811d77
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tardis/transport/montecarlo/packet_trackers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

boundary_interaction_dtype = np.dtype(
[
("interaction_id", "int64"),
("event_id", "int64"),
("current_shell_id", "int64"),
("next_shell_id", "int64"),
]
Expand All @@ -16,7 +16,7 @@

line_interaction_dtype = np.dtype(
[
("interaction_id", "int64"),
("event_id", "int64"),
("shell_id", "int64"),
("r", "float64"),
("in_nu", "float64"),
Expand All @@ -43,7 +43,7 @@
("num_interactions", int64),
("num_boundary_interactions", int64),
("num_line_interactions", int64),
("interaction_id", int64),
("event_id", int64),
("extend_factor", int64),
]

Expand Down Expand Up @@ -107,7 +107,7 @@ def __init__(self, length):
self.num_interactions = 0
self.num_boundary_interactions = 0
self.num_line_interactions = 0
self.interaction_id = 1
self.event_id = 1
self.extend_factor = 2

def extend_array(self, array, array_length):
Expand Down Expand Up @@ -167,16 +167,16 @@ def track_boundary_interaction(self, current_shell_id, next_shell_id):
self.boundary_interaction_array_length = temp_length

self.boundary_interaction[self.num_boundary_interactions][
"interaction_id"
] = self.interaction_id
"event_id"
] = self.event_id
self.boundary_interaction[self.num_boundary_interactions][
"current_shell_id"
] = current_shell_id
self.boundary_interaction[self.num_boundary_interactions][
"next_shell_id"
] = next_shell_id
self.num_boundary_interactions += 1
self.interaction_id += 1
self.event_id += 1

def track_line_interaction(self, r_packet):
"""
Expand All @@ -196,8 +196,8 @@ def track_line_interaction(self, r_packet):
self.line_interaction_array_length = temp_length

self.line_interaction[self.num_line_interactions][
"interaction_id"
] = self.interaction_id
"event_id"
] = self.event_id
self.line_interaction[self.num_line_interactions][
"shell_id"
] = r_packet.current_shell_id
Expand All @@ -212,7 +212,7 @@ def track_line_interaction(self, r_packet):
"out_id"
] = r_packet.last_line_interaction_out_id
self.num_line_interactions += 1
self.interaction_id += 1
self.event_id += 1

def finalize_array(self):
"""
Expand Down

0 comments on commit 6811d77

Please sign in to comment.