From 5aa2275b52bad1d0c4e29e5c01a53a166ca68079 Mon Sep 17 00:00:00 2001 From: Karthik Rishinarada Date: Thu, 9 Jan 2025 22:15:21 +0530 Subject: [PATCH 1/3] rename tau to tau event --- .mailmap | 2 ++ tardis/energy_input/GXPacket.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index b238be626b3..07cb9d0560c 100644 --- a/.mailmap +++ b/.mailmap @@ -119,6 +119,8 @@ Josh Shields Karan Desai Karan Desai karandesai-96 +Karthik karthik11135 + Kaushik Varanasi Kaushik Varanasi kaushik94 diff --git a/tardis/energy_input/GXPacket.py b/tardis/energy_input/GXPacket.py index dd8792876bc..d61379df0fa 100644 --- a/tardis/energy_input/GXPacket.py +++ b/tardis/energy_input/GXPacket.py @@ -63,8 +63,7 @@ def __init__( self.status = status self.shell = shell self.time_current = time_current - # TODO: rename to tau_event - self.tau = -np.log(np.random.random()) + self.tau_event = -np.log(np.random.random()) def get_location_r(self): """Calculate radius of the packet From 3e30f3ac7b525701c253fb3e4cff356e4fe6e897 Mon Sep 17 00:00:00 2001 From: Karthik Rishinarada Date: Thu, 9 Jan 2025 22:34:22 +0530 Subject: [PATCH 2/3] mailmap change --- .mailmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index 07cb9d0560c..8cc367cbda4 100644 --- a/.mailmap +++ b/.mailmap @@ -119,7 +119,7 @@ Josh Shields Karan Desai Karan Desai karandesai-96 -Karthik karthik11135 +Karthik Rishinarada Kaushik Varanasi Kaushik Varanasi kaushik94 From f85f7b82fa16d1232b21fbd02566068a59fae5a7 Mon Sep 17 00:00:00 2001 From: Karthik Rishinarada Date: Fri, 10 Jan 2025 16:38:07 +0530 Subject: [PATCH 3/3] rename at other places --- tardis/energy_input/GXPacket.py | 2 +- tardis/energy_input/gamma_packet_loop.py | 2 +- tardis/energy_input/gamma_ray_grid.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tardis/energy_input/GXPacket.py b/tardis/energy_input/GXPacket.py index d61379df0fa..ba8ab609b5a 100644 --- a/tardis/energy_input/GXPacket.py +++ b/tardis/energy_input/GXPacket.py @@ -105,7 +105,7 @@ def __init__( self.shell = shell self.time_current = time_current self.number_of_packets = len(self.energy_rf) - self.tau = -np.log(np.random.random(self.number_of_packets)) + self.tau_event = -np.log(np.random.random(self.number_of_packets)) # @njit(**njit_dict_no_parallel) diff --git a/tardis/energy_input/gamma_packet_loop.py b/tardis/energy_input/gamma_packet_loop.py index 385febda679..be824ea2378 100644 --- a/tardis/energy_input/gamma_packet_loop.py +++ b/tardis/energy_input/gamma_packet_loop.py @@ -190,7 +190,7 @@ def gamma_packet_loop( + pair_creation_opacity ) * doppler_factor - packet.tau = -np.log(np.random.random()) + packet.tau_event = -np.log(np.random.random()) ( distance_interaction, diff --git a/tardis/energy_input/gamma_ray_grid.py b/tardis/energy_input/gamma_ray_grid.py index 1f86be634af..003f4434086 100644 --- a/tardis/energy_input/gamma_ray_grid.py +++ b/tardis/energy_input/gamma_ray_grid.py @@ -107,7 +107,7 @@ def distance_trace( outer_velocity[photon.shell] * current_time, ) - distance_interaction = photon.tau / total_opacity + distance_interaction = photon.tau_event / total_opacity distance_time = (next_time - photon.time_current) * C_CGS return distance_interaction, distance_boundary, distance_time, shell_change