From 098db98e57043c0a9c817be8640e956c11fde06f Mon Sep 17 00:00:00 2001 From: rodot- Date: Mon, 22 Jul 2024 16:29:39 -0400 Subject: [PATCH] small implimentation detail with indexing --- tardis/transport/montecarlo/formal_integral_cuda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tardis/transport/montecarlo/formal_integral_cuda.py b/tardis/transport/montecarlo/formal_integral_cuda.py index 54bea3396fa..6da759134fa 100644 --- a/tardis/transport/montecarlo/formal_integral_cuda.py +++ b/tardis/transport/montecarlo/formal_integral_cuda.py @@ -195,7 +195,7 @@ def cuda_formal_integral( patt_S_ul += 1 pJblue_lu += 1 - for _ in range(max(nu_end_idx - pline, 1) - 1): + for _ in range(1, max(nu_end_idx - pline, 1)): # calculate e-scattering optical depth to next resonance point zend = time_explosion / C_INV * (1.0 - line_list_nu[pline] / nu)